Skip to content

Commit

Permalink
Update TestArrayFunctions.java
Browse files Browse the repository at this point in the history
- Added test case to ensure that creating arrays of size 255 or more are now supported
  • Loading branch information
arararz committed Apr 28, 2024
1 parent 6a09f4b commit 914f26b
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -27,10 +27,8 @@ public class TestArrayFunctions
@Test
public void testArrayConstructor()
{
tryEvaluateWithAll("array[" + Joiner.on(", ").join(nCopies(254, "rand()")) + "]", new ArrayType(DOUBLE));
assertNotSupported(
"array[" + Joiner.on(", ").join(nCopies(255, "rand()")) + "]",
"Too many arguments for array constructor");
tryEvaluateWithAll("array[" + Joiner.on(", ").join(nCopies(200, "rand()")) + "]", new ArrayType(DOUBLE));
tryEvaluateWithAll("array[" + Joiner.on(", ").join(nCopies(1000, "rand()")) + "]", new ArrayType(DOUBLE));
}

@Test
Expand Down

0 comments on commit 914f26b

Please sign in to comment.