Exemple #1
0
        public void NotFollowedByTest()
        {
            Combinator.NotFollowedBy(Chars.EndOfInput())
            .Run("inputString".AsStream())
            .Case(
                failure: (restStream, _) => Assert.Fail(),
                success: (restStream, _) => { /* OK */ });

            Combinator.NotFollowedBy(Chars.EndOfInput())
            .Run("".AsStream())
            .Case(
                failure: (restStream, _) => { /* OK */ },
                success: (restStream, _) => Assert.Fail());
        }