summaryrefslogtreecommitdiff
path: root/src/test/icu
diff options
context:
space:
mode:
authorJeff Davis2023-11-02 05:47:06 +0000
committerJeff Davis2023-11-02 05:47:06 +0000
commita02b37fc083239a07f1ac02951d208235efb218b (patch)
tree368caec52740ec496992c2793b6a0c33db5aa020 /src/test/icu
parent7021d3b1766420ac4968fa0ff81873e81b7fd641 (diff)
Additional unicode primitive functions.
Introduce unicode_version(), icu_unicode_version(), and unicode_assigned(). The latter requires introducing a new lookup table for the Unicode General Category, which is generated along with the other Unicode lookup tables. Discussion: https://postgr.es/m/CA+TgmoYzYR-yhU6k1XFCADeyj=Oyz2PkVsa3iKv+keM8wp-F_A@mail.gmail.com Reviewed-by: Peter Eisentraut
Diffstat (limited to 'src/test/icu')
-rw-r--r--src/test/icu/t/010_database.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/icu/t/010_database.pl b/src/test/icu/t/010_database.pl
index 0e9446cebef..67fc3bbf19b 100644
--- a/src/test/icu/t/010_database.pl
+++ b/src/test/icu/t/010_database.pl
@@ -27,6 +27,10 @@ CREATE TABLE icu (def text, en text COLLATE "en-x-icu", upfirst text COLLATE upp
INSERT INTO icu VALUES ('a', 'a', 'a'), ('b', 'b', 'b'), ('A', 'A', 'A'), ('B', 'B', 'B');
});
+is( $node1->safe_psql('dbicu', q{SELECT icu_unicode_version() IS NOT NULL}),
+ qq(t),
+ 'ICU unicode version defined');
+
is( $node1->safe_psql('dbicu', q{SELECT def FROM icu ORDER BY def}),
qq(A
a