Commit 2119c8f0 authored by rockon999's avatar rockon999

Automate testing for unicode encoding.

parent c068ba6d
......@@ -100,10 +100,10 @@ else
fi
# ensure the encoding of argv is being properly handled
$gjs -c 'log(ARGV[0])' "Valentín"
report "Valentín should be outputed. Valentín is incorrect and if shown encoding is broken for argv"
$gjs -c 'log(ARGV[0])' "☭"
report "☭ should be outputed. If you see a unicode code point, encoding is broken for argv (and possibly imports)"
$gjs -c 'imports.system.exit((ARGV[0] !== "Valentín") ? 1 : 0)' "Valentín"
report "Basic unicode encoding (accents, etc) should be functioning properly for ARGV and imports."
$gjs -c 'imports.system.exit((ARGV[0] !== "☭") ? 1 : 0)' "☭"
report "Unicode encoding for symbols should be functioning properly for ARGV and imports."
# gjs --help prints GJS help
$gjs --help >/dev/null
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment