Improved tests related to keysyms
authorPierre Le Marre <dev@wismill.eu>
Tue, 4 Jul 2023 07:23:24 +0000 (09:23 +0200)
committerWismill <dev@wismill.eu>
Fri, 14 Jul 2023 07:22:24 +0000 (09:22 +0200)
commita4c0852687cf0d185fff0ee05a5d28140e8ce3e3
treeae818e161db338e819c0233e0ae8916a1537a7a6
parent7a815ad30718a7551bed36f217c1475aa6187161
Improved tests related to keysyms

- Add a keymap test with decimal and hexadecimal keysyms.
- Reorganize code in `test/keysym.c` by parsing type: name, Unicode and
  hexadecimal.
- Add more tests for edge cases. In particular:
  - test decimal format (currently not supported);
  - test the Unicode and hexadecimal ranges more thoroughly;
  - test with wrong case without the XKB_KEYSYM_CASE_INSENSITIVE flag;
  - test surrounding spaces.
- Document the tests.
test/data/symbols/numeric_keysyms [new file with mode: 0644]
test/keymap.c
test/keysym.c