diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 22:30:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 22:30:19 -0400 |
| commit | 708acda54e56a74096ec780777596e570db5b627 (patch) | |
| tree | 6a4ecb5020f2259fb2ca50467cf97a8fe0045d88 /test/text.tm | |
| parent | 5a78eb61c876f73f6ed6bb3d631e0edc065026db (diff) | |
WIP fixes for synthetic graphemes and adding some text conversion
methods
Diffstat (limited to 'test/text.tm')
| -rw-r--r-- | test/text.tm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm index 150bc31f..05763723 100644 --- a/test/text.tm +++ b/test/text.tm @@ -103,3 +103,18 @@ func main(): = "A 3" >> $(one (nested) two $(1+2)) = "one (nested) two 3" + + + >> "one two three":replace("[..alpha]", "") + + >> c := "É̩" + >> c:codepoint_names() + = ["LATIN CAPITAL LETTER E WITH ACUTE", "COMBINING VERTICAL LINE BELOW"] + >> c == Text.from_codepoint_names(c:codepoint_names()) + = yes + >> c == Text.from_codepoints(c:utf32_codepoints()) + = yes + >> c == Text.from_bytes(c:utf8_bytes()) + = yes + + |
