Exemple #1
0
 def test_emit_integer(self):
     assert emit(node("i0e")) == 0
Exemple #2
0
    def test_parse_list_with_integer(self):
        expected = list_node([])
        expected.children.append(node("i0e"))

        assert parse(["l", "i0e", "e"]) == expected
Exemple #3
0
 def test_parse_integer_list_children(self):
     assert parse(["l", "i0e", "e"]).children == [node("i0e")]
Exemple #4
0
 def test_parse_integer(self):
     assert parse(["i0e"]) == node("i0e")
	def test_emit_integer(self):
		assert emit(node("i0e")) == 0
	def test_parse_integer_list_children(self):
		assert parse(["l", "i0e", "e"]).children == [node("i0e")]
	def test_parse_list_with_integer(self):
		expected = list_node([])
		expected.children.append(node("i0e"))

		assert parse(["l", "i0e", "e"]) == expected
	def test_parse_integer(self):
		assert parse(["i0e"]) == node("i0e")