mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22:27 +00:00
Disable some anti-Musl Lua tests
This commit is contained in:
parent
b2a1811c01
commit
1d532ba3f8
2 changed files with 29 additions and 24 deletions
14
third_party/lua/test/strings.lua
vendored
14
third_party/lua/test/strings.lua
vendored
|
@ -430,14 +430,18 @@ if not _port then
|
|||
end
|
||||
|
||||
if trylocale("collate") then
|
||||
assert("alo" < "álo" and "álo" < "amo")
|
||||
-- <disabled by jart: doesn't play nice with musl locale faking>
|
||||
-- assert("alo" < "álo" and "álo" < "amo")
|
||||
-- </disabled by jart>
|
||||
end
|
||||
|
||||
if trylocale("ctype") then
|
||||
assert(string.gsub("áéíóú", "%a", "x") == "xxxxx")
|
||||
assert(string.gsub("áÁéÉ", "%l", "x") == "xÁxÉ")
|
||||
assert(string.gsub("áÁéÉ", "%u", "x") == "áxéx")
|
||||
assert(string.upper"áÁé{xuxu}ção" == "ÁÁÉ{XUXU}ÇÃO")
|
||||
-- <disabled by jart: doesn't play nice with musl locale faking>
|
||||
-- assert(string.gsub("áéíóú", "%a", "x") == "xxxxx")
|
||||
-- assert(string.gsub("áÁéÉ", "%l", "x") == "xÁxÉ")
|
||||
-- assert(string.gsub("áÁéÉ", "%u", "x") == "áxéx")
|
||||
-- assert(string.upper"áÁé{xuxu}ção" == "ÁÁÉ{XUXU}ÇÃO")
|
||||
-- </disabled by jart>
|
||||
end
|
||||
|
||||
os.setlocale("C")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue