Esempio n. 1
0
 def setup(self):
     self.input = grammar(input)
     self.expected = grammar(expected)
Esempio n. 2
0
 def setup(self):
     self.gram = grammar(data)
Esempio n. 3
0
 def test_not_equal_if_different_init(self):
     other = grammar(data)
     other.init = 'A'
     assert_not_equal(self.gram, other)
Esempio n. 4
0
 def test_not_equal_if_different_prods(self):
     other = grammar(data + [('A', ('b'))])
     assert_not_equal(self.gram, other)
Esempio n. 5
0
 def test_equal_if_same_init_and_prods(self):
     other = grammar(data)
     assert_equal(self.gram, other)