public void Parser_OfChars_UsingString_AcceptsAnyOfThoseChars() { var parser = Parse.Chars("abc").Once(); AssertParser.SucceedsWithOne(parser, "a", 'a'); AssertParser.SucceedsWithOne(parser, "b", 'b'); AssertParser.SucceedsWithOne(parser, "c", 'c'); }
public void Parser_OfChar_AcceptsOnlyOneChar() { AssertParser.SucceedsWithOne(Parse.Char('a').Once(), "aaa", 'a'); }