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