Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public void split_ascii_success(String string, String separator, List<String> ex
@TestParameters("{string: '😁😦😑😦', separator: ' ', expectedResult: ['😁😦😑😦']}")
@TestParameters("{string: '😁a😦나😑 😦', separator: ' ', expectedResult: ['😁a😦나😑', '😦']}")
@TestParameters("{string: '😁a😦나😑 😦', separator: '나😑 ', expectedResult: ['😁a😦', '😦']}")
@TestParameters("{string: '😁a😦나😑 😦', separator: ' ', expectedResult: ['😁a😦나😑' ,'😦']}")
@TestParameters("{string: '😁a😦나😑 😦', separator: '😁a😦나😑 😦', expectedResult: ['','']}")
public void split_unicode_success(String string, String separator, List<String> expectedResult)
throws Exception {
Expand Down
8 changes: 0 additions & 8 deletions parser/src/test/java/dev/cel/parser/CelUnparserImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ public List<String> provideValues(Context context) {
"Foo{`a b`: foo}",

// Constants
"true",
"4",
"4u",

Expand All @@ -135,14 +134,12 @@ public List<String> provideValues(Context context) {
"false && (!true || false)",
"(false && !true || false) ? 2 : 3",
"(x < 5) ? x : 5",
"(x > 5) ? (x - 5) : 0",
"(x > 5) ? ((x > 10) ? (x - 10) : 5) : 0",
"a in b",

// Calculations
"(1 + 2) * 3",
"1 + 2 * 3",
"-(1 * 2)",

// Comprehensions
"[1, 2, 3].all(x, x > 0)",
Expand All @@ -165,12 +162,7 @@ public List<String> provideValues(Context context) {
// equal to filter(x, filter_function).
"[1, 2, 3].map(x, x >= 2, x)",

// Index
"x[\"a\"].single_int32 == 23",
"a[1][\"b\"]",

// Functions
"x != \"a\"",
"size(x) == x.size()",

// Long string
Expand Down
Loading