fix bug in regex-test: dfa-gen.sml should add the position of the endMarker to the followSet as well
This commit is contained in:
@@ -123,7 +123,7 @@ struct
|
||||
(* arrange *)
|
||||
val sentence = "favo"
|
||||
val regexString = "favou?"
|
||||
val dfa = CsDfa.fromString "favorite"
|
||||
val dfa = CsDfa.fromString regexString
|
||||
|
||||
(* act *)
|
||||
val matches = CsDfa.matchString (dfa, sentence)
|
||||
|
||||
Reference in New Issue
Block a user