diff options
author | ywang <yw05@forksworld.de> | 2021-08-09 10:10:02 +0200 |
---|---|---|
committer | ywang <yw05@forksworld.de> | 2021-08-09 10:10:02 +0200 |
commit | cec34c28c9630300eb013ba86a68a0709fe518fc (patch) | |
tree | d86239b6e67972a60cc4b359c68710746d3158c4 /advtrains/spec/textrender_spec.lua | |
parent | 06ac1870418034c02ecd073a5a85b674a728d892 (diff) | |
download | advtrains-cec34c28c9630300eb013ba86a68a0709fe518fc.tar.gz advtrains-cec34c28c9630300eb013ba86a68a0709fe518fc.tar.bz2 advtrains-cec34c28c9630300eb013ba86a68a0709fe518fc.zip |
Add support for combining diacritics for LGC scripts; reorganize files
Diffstat (limited to 'advtrains/spec/textrender_spec.lua')
-rw-r--r-- | advtrains/spec/textrender_spec.lua | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/advtrains/spec/textrender_spec.lua b/advtrains/spec/textrender_spec.lua deleted file mode 100644 index f02afec..0000000 --- a/advtrains/spec/textrender_spec.lua +++ /dev/null @@ -1,19 +0,0 @@ -package.path = "../?.lua" .. package.path - --- This unittest file only makes sure that extremely trivial things do not break. It is not intended to be complete - -local tr = require("textrender") - -describe("string to unicode codepoint sequence converter", function() - local mbstoucs = tr.mbstoucs - it("should convert strings properly", function() - assert.same({0x61,0xe9,0x01d8}, mbstoucs("aéǘ")) - end) - it("should not convert invalid multibyte sequences", function() - local function assert_invalid(...) - assert.same({}, mbstoucs(string.char(...))) - end - assert_invalid(65, math.random(128,191), math.random(128,191)) - assert_invalid(65, math.random(192,223)) - end) -end)
\ No newline at end of file |