assertEquals("result[1]", false, result.get(1));
assertEquals("result[2]", true, result.get(2));
}
public void testToJsArrayInteger() {
JsArrayInteger result;
result = ArrayHelper.toJsArrayInteger(1);
assertEquals("length", 1, result.length());
assertEquals("result[0]", 1, result.get(0));
result = ArrayHelper.toJsArrayInteger(1, 2, -1);
assertEquals("length", 3, result.length());
assertEquals("result[0]", 1, result.get(0));
assertEquals("result[1]", 2, result.get(1));
assertEquals("result[2]", -1, result.get(2));
int[] integers = {1, 2, -1};
result = ArrayHelper.toJsArrayInteger(integers);
assertEquals("length", 3, result.length());
assertEquals("result[0]", 1, result.get(0));
assertEquals("result[1]", 2, result.get(1));
assertEquals("result[2]", -1, result.get(2));
}