public void PointerI_Should_BeI()
        {
            var input = @"^I";

            var tokens = lexer.Tokenize(input);

            ast.CreateIterator(tokens);
            var node = ast.Expression();

            node.Should().BeOfType <PointerNode>().Which.Value.Should().Be('I');
        }
Beispiel #2
0
        public void PointerG_Should_ReturnDot()
        {
            var input = @"^G";

            var tokens = lexer.Tokenize(input);

            ast.CreateIterator(tokens);

            var node = ast.Expression();

            interpreter.CreateGlobalMemory();
            var s = interpreter.VisitNode(node);

            s.ToString().Should().Be(".");
        }