Skip to content

Commit

Permalink
[FLINK-27891][Table] reorganise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Mar 14, 2023
1 parent 36c13d9 commit 7ee5c01
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -36,22 +36,12 @@ class CollectionFunctionsITCase extends BuiltInFunctionTestBase {
Stream<TestSetSpec> getTestSetSpecs() {
return Stream.of(
TestSetSpec.forFunction(BuiltInFunctionDefinitions.ARRAY_APPEND)
.testResult(
$("f2").arrayPrepend("!"),
"ARRAY_PREPEND('!', f2)",
new String[] {"!", "Hello", "World"},
DataTypes.ARRAY(DataTypes.STRING()))
.onFieldsWithData(
new Integer[] {1, 2}, null, new String[] {"Hello", "World"})
.andDataTypes(
DataTypes.ARRAY(DataTypes.INT()),
DataTypes.ARRAY(DataTypes.INT()),
DataTypes.ARRAY(DataTypes.STRING()))
.testResult(
$("f0").arrayAppend(3),
"ARRAY_APPEND(f0, 3)",
new Integer[] {1, 2, 3},
DataTypes.ARRAY(DataTypes.INT()))
.testResult(
$("f0").arrayAppend(null),
"ARRAY_APPEND(f0, null)",
Expand Down

0 comments on commit 7ee5c01

Please sign in to comment.