message: Added indexof tests
diff: @@ -169,6 +169,24 @@ export class LuaLibArrayTests {
  Expect(result).toBe(joinedInp);
  }
  + @TestCase([], "test1", -1)
  + @TestCase(["test1"], "test1", 1)
  + @TestCase(["test1", "test2"], "test2", 2)
  + @Test("array.indexOf")
  + public indexOf(inp: string[], element: string, expected: number) {
  + // Transpile
  + let lua = util.transpileString(
  + `return ${JSON.stringify(inp)}.indexOf("${element}"))`
  + , util.dummyTypes.Array);
  +
  + // Execute
  + let result = util.executeLua(lua);
  +
  + // Assert
  + // Acount for lua indexing (-1)
  + Expect(result).toBe(expected);
  + }
  +
  @TestCase([1, 2, 3], 3)
  @TestCase([1, 2, 3, 4, 5], 3)
  @Test("array.destructuring.simple")
  