예제 #1
0
파일: TokenizerTest.cs 프로젝트: pha3z/swan
        public void TokenizeExpression_ReturnsListOfTokens(string input, string[] tokens, TokenType[] tokensType)
        {
            var result = new RdlTokenizer(input);

            Assert.AreEqual(tokens, result.Tokens.Select(x => x.Value));
            Assert.AreEqual(tokensType, result.Tokens.Select(x => x.Type));
        }
예제 #2
0
파일: TokenizerTest.cs 프로젝트: pha3z/swan
        public void ShuntingStack_ReturnsListOfTokens(string input, string[] tokens, bool includeStopper)
        {
            var result = new RdlTokenizer(input);

            Assert.AreEqual(tokens, result.ShuntingYard(includeStopper).Select(x => x.Value));
        }