Skip to content

Commit

Permalink
[native] Add e2e tests for normalize scalar function
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabre12 authored and Pratik Joseph Dabre committed Jun 19, 2024
1 parent c3e4114 commit 8d3aa7c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,15 @@ public void testStringFunctions()

// Reverse
assertQuery("SELECT comment, reverse(comment) FROM orders");

// Normalize
assertQuery("SELECT normalize(null)");
assertQuery("SELECT normalize('abcd')");
assertQuery("SELECT normalize('sch\\u00f6n', NFC)");
assertQuery("SELECT normalize('\\u3231\\u3327\\u3326\\u2162\\u3231\\u3327\\u3326\\u2162\\u3231\\u3327\\u3326\\u2162', NFKC)");
assertQuery("SELECT normalize('\\xEF\\xBE\\x8', NFKD)");
assertQuery("SELECT normalize(comment) FROM orders");
assertQuery("SELECT normalize(comment, NFKC) FROM orders");
}

@Test
Expand Down

0 comments on commit 8d3aa7c

Please sign in to comment.