Adding unit tests

db4
Daniel Ehrenberg 2009-03-02 16:30:42 -06:00
parent 0b5ebce339
commit 8a40ef0cdd
2 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,9 @@ TUPLE: parts in out ;
] assoc-map
] change-transitions ;
USE: sorting
: nfa>dfa ( nfa -- dfa )
construct-dfa
minimize disambiguate
construct-dfa minimize
disambiguate
construct-dfa minimize ;

View File

@ -3,6 +3,8 @@ regexp.traversal eval strings multiline accessors regexp.matchers ;
IN: regexp-tests
\ <regexp> must-infer
\ compile-regexp must-infer
\ compile-dfa-quot must-infer
\ matches? must-infer
[ f ] [ "b" "a*" <regexp> matches? ] unit-test