Source

example-vm / tests / test_parser.py

Full commit
1
2
3
4
5
6
from minijs.parser import Block, Stmt, ConstantFloat


class TestParser(object):
    def test_const_float(self, space):
        assert space.parse("1") == Block([Stmt(ConstantFloat(1))])