1 IN: xmode.keyword-map.tests
2 USING: xmode.keyword-map xmode.tokens
3 tools.test namespaces assocs kernel strings ;
5 f <keyword-map> dup "k" set
13 [ 3 ] [ "k" get assoc-size ] unit-test
14 [ KEYWORD1 ] [ "int" "k" get at ] unit-test
15 [ "_" ] [ "k" get keyword-map-no-word-sep* >string ] unit-test
16 [ ] [ LITERAL1 "x-y" "k" get set-at ] unit-test
17 [ "-_" ] [ "k" get keyword-map-no-word-sep* >string ] unit-test
19 t <keyword-map> dup "k" set
26 [ KEYWORD1 ] [ "fOo" "k" get at ] unit-test
28 [ KEYWORD2 ] [ "BBAR" "k" get at ] unit-test
30 [ KEYWORD3 ] [ "baz" "k" get at ] unit-test