Edit

kc3-lang/libxkbcommon/test/data/symbols/numeric_keysyms

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2023-07-04 09:23:24
    Hash : a4c08526
    Message : 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
  • default alphanumeric_keys
    xkb_symbols "numeric keysyms" {
        name[Group1]= "My Awesome Layout";
    
        key <AD01> { [ 536870909 ] };
        key <AD02> { [ 0x1ffffffe ] };
        key <AD03> { [ 0x1fffffff, 0xffffffff ] };
    
        modMap Mod1 { 536870909 };
        modMap Mod2 { 0x1ffffffe };
        modMap Mod3 { 0x1fffffff };
        modMap Mod4 { 0xffffffff };
    };