コード例 #1
0
ファイル: test_parser.py プロジェクト: xblahoud/Noodler
 def test_all_noreplace_files_straightline(
         self, noreplace_parsers: SmtlibParserHackAbc):
     """
     Test that all benchmarks passed by noreplace_parsers are from the straightline fragment.
     """
     query = noreplace_parsers.parse_query()
     assert is_straightline(query.equations)
コード例 #2
0
 def test_two_on_left(self, straightline_equations):
     straightline_equations[0].left = "mx"
     assert not is_straightline(straightline_equations)
コード例 #3
0
 def test_double_assignement(self, straightline_equations):
     new_eq = StringEquation("n", "lk")
     straightline_equations.append(new_eq)
     assert not is_straightline(straightline_equations)
コード例 #4
0
 def test_on_left_on_right(self, straightline_equations):
     straightline_equations[1].right += straightline_equations[1].left
     assert not is_straightline(straightline_equations)
コード例 #5
0
 def test_valid(self, straightline_equations):
     assert is_straightline(straightline_equations)