Commit Graph

19 Commits

Author SHA1 Message Date
Paul LeoNerd Evans 0a101ff71e Bugfix termkey_strpkey parsing unicode with trailing content 2011-04-07 20:19:34 +01:00
Paul LeoNerd Evans c626393aeb Assert that termkey_strpkey's return points to endofstring after parse 2011-04-07 20:14:44 +01:00
Paul LeoNerd Evans ad7d31ead8 Provide termkey_keycmp() for sorting purposes 2011-04-02 15:07:30 +01:00
Paul LeoNerd Evans 88230407fe Adjust termkey_strpkey() API more like strptime(); return pointer to end of recognised section, allows for stream parsing 2011-04-01 13:49:20 +01:00
Paul LeoNerd Evans dbb13defb7 Provide a termkey_lookup_keyname that can do partial buffer parsing 2011-04-01 13:26:54 +01:00
Paul LeoNerd Evans a3b8804018 Ensure strpkey can parse numbered function keys 2011-04-01 10:48:15 +01:00
Paul LeoNerd Evans 59800c356b Unicode codepoint is stored in key->code.codepoint, not code.number 2011-04-01 10:41:44 +01:00
Paul LeoNerd Evans 6424282c4d Partial implementation of termkey_strpkey(3); missing FORMAT_WRAPBRACKET and TYPE_FUNCTION support 2011-04-01 00:50:51 +01:00
Paul LeoNerd Evans f1b3dff4c2 Extract UTF-8 sequence parser into its own function, fix bugs, apply unit tests 2011-03-31 23:42:52 +01:00
Paul LeoNerd Evans 739be0e55d Added unit tests for UTF-8 parser 2011-03-31 18:59:07 +01:00
Paul LeoNerd Evans 9b97244c54 Added some unit tests for termkey_strfkey(3) 2011-03-31 14:10:35 +01:00
Paul LeoNerd Evans 5a6e289d23 #include termkey.h from the correct path in unit tests 2011-03-31 13:51:21 +01:00
Paul LeoNerd Evans f230bc86fb Added some unit tests for keyname <=> sym constant conversions 2011-03-31 13:43:16 +01:00
Paul LeoNerd Evans 1bf3c958b1 taplib's is_str() should take const char * 2011-03-31 13:42:27 +01:00
Paul LeoNerd Evans be153dc5ee Added some unit testing for termkey_getkey(3) and friends 2011-03-31 12:47:09 +01:00
Paul LeoNerd Evans 0ea0fb331b is()-like testing for ints and strings 2011-03-31 12:46:06 +01:00
Paul LeoNerd Evans 9d7f0037a8 Remember to exit with exit_status() from unit testing 2011-03-31 12:13:37 +01:00
Paul LeoNerd Evans 3bbda921b7 Created a little Test::More-like library for TAP testing 2011-03-31 12:11:19 +01:00
Paul LeoNerd Evans c228335bca Created a unit-testing system using perl's prove 2011-03-31 11:38:40 +01:00