Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var choice = new Choice(
- new Character('c'),
- new Character('p'),
- new Character('r'),
- new Character('i'),
- new Character('a'),
- new Character('n'),
- new Character('u'),
- new Character('s'));
- var whiteSpace = new Character(' ');
- var firstName = new Choice(new Sequence(choice, choice, choice, choice, choice, choice, choice),
- new Sequence(choice, choice, choice, choice, choice));
- var lastName = new Choice(new Sequence(choice, choice, choice, choice));
- var fullName = new Sequence(firstName, whiteSpace, lastName);
- Assert.Equal("", fullName.Match("cipri rusu").RemainingText());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement