diff options
author | Ran Benita <ran@unusedvar.com> | 2021-04-01 22:07:28 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2021-04-01 22:24:05 +0300 |
commit | 8cd688c06378ebdb2def6f310fb1e78898b75bde (patch) | |
tree | 2b4deb86ed56ffefd776976021387795570d1dd6 /test | |
parent | 68e69b7deb8d0d38758a7a68c76892b90e3fccc9 (diff) | |
download | xorg-lib-libxkbcommon-8cd688c06378ebdb2def6f310fb1e78898b75bde.tar.gz |
keysym: avoid strtoul in xkb_keysym_from_name
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/keysym.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/keysym.c b/test/keysym.c index b802bcb..0c3ba9f 100644 --- a/test/keysym.c +++ b/test/keysym.c @@ -136,7 +136,18 @@ main(void) assert(test_string("XF86_Switch_VT_5", 0x1008FE05)); assert(test_string("VoidSymbol", 0xFFFFFF)); assert(test_string("U4567", 0x1004567)); + assert(test_string("U+4567", XKB_KEY_NoSymbol)); + assert(test_string("U+4567ffff", XKB_KEY_NoSymbol)); + assert(test_string("U+4567ffffff", XKB_KEY_NoSymbol)); + assert(test_string("U 4567", XKB_KEY_NoSymbol)); + assert(test_string("U +4567", XKB_KEY_NoSymbol)); assert(test_string("0x10203040", 0x10203040)); + assert(test_string("0x102030400", XKB_KEY_NoSymbol)); + assert(test_string("0x010203040", XKB_KEY_NoSymbol)); + assert(test_string("0x+10203040", XKB_KEY_NoSymbol)); + assert(test_string("0x 10203040", XKB_KEY_NoSymbol)); + assert(test_string("0x +10203040", XKB_KEY_NoSymbol)); + assert(test_string("0x-10203040", XKB_KEY_NoSymbol)); assert(test_string("a", 0x61)); assert(test_string("A", 0x41)); assert(test_string("ch", 0xfea0)); |