コード例 #1
0
ファイル: remove_unit_tests.py プロジェクト: gropax/gramz.py
 def setup(self):
     self.input = grammar(input)
     self.expected = grammar(expected)
コード例 #2
0
ファイル: helpers_tests.py プロジェクト: gropax/gramz.py
 def setup(self):
     self.gram = grammar(data)
コード例 #3
0
ファイル: grammar_tests.py プロジェクト: gropax/gramz.py
 def test_not_equal_if_different_init(self):
     other = grammar(data)
     other.init = 'A'
     assert_not_equal(self.gram, other)
コード例 #4
0
ファイル: grammar_tests.py プロジェクト: gropax/gramz.py
 def test_not_equal_if_different_prods(self):
     other = grammar(data + [('A', ('b'))])
     assert_not_equal(self.gram, other)
コード例 #5
0
ファイル: grammar_tests.py プロジェクト: gropax/gramz.py
 def test_equal_if_same_init_and_prods(self):
     other = grammar(data)
     assert_equal(self.gram, other)