CONSTANT: ignore-string-with-quote "\"\\\"USE:\" : nop ( -- ) ;"
CONSTANT: ignore-use-regex "R/ USE: ignore/ : nop ( -- ) ;"
CONSTANT: ignore-using-regex "R/ USING: ignore ;/ : nop ( -- ) ;"
+CONSTANT: ignore-char-backslash "CHAR: \\ USING: math.functions ;"
CONSTANT: empty-using-statement "USING: ; nop ( -- ) ;"
: ---- ( -- ) "-------------------------------------------------------------------------" print ;
PRIVATE>
----
+"It should ignore CHAR: \\: " print
+{ { "math.functions" } } [ ignore-char-backslash find-unused-in-string ] unit-test
+
+----
+
"It should ignore USE: and USING: that are in RegEx: " print
{ { } } [ ignore-use-regex find-unused-in-string ] unit-test
{ { } } [ ignore-using-regex find-unused-in-string ] unit-test