Skip to content

Commit

Permalink
test: fix expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Jan 9, 2024
1 parent bbfcece commit 6f7513a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def test_counter_kgoliya1(self):
# CirFix: correct repair
changes = self.synth_success(counter_dir, "kgoliya_buggy1", solver=self.solver, init=self.init,
incremental=self.incremental, timeout=self.timeout)
self.assertEqual(2, changes)
# almost correct, needs extended testbench
self.assertEqual(1, changes)

def test_counter_wadden1(self):
# CirFix: correct repair
Expand Down Expand Up @@ -348,9 +349,11 @@ def test_reed_out_stage(self):

def test_sdram_wadden1(self):
# CirFix: correct repair (minimization fails)
changes = self.synth_success(sd_dir / "no_tri_state.toml", "wadden_buggy1", solver=self.solver, init=self.init,
incremental=self.incremental, timeout=self.timeout)
self.assertEqual(1, changes)
# unfortunatelly with the new conditional_overwrite instead of the assign const template,
# we can no longer repair this
# can be fixed by increasing window size or improving conditional overwrite template
self.synth_cannot_repair(sd_dir / "no_tri_state.toml", "wadden_buggy1", solver=self.solver, init=self.init,
incremental=self.incremental, timeout=self.timeout)

def test_sdram_wadden2(self):
# CirFix: timeout
Expand Down Expand Up @@ -438,7 +441,10 @@ def test_wadden_buggy2_orig_tb(self):

def test_wadden_buggy1_orig_tb(self):
# missing reset (only one of the two removed is actually needed)
self.synth_success(sd_dir / "no_tri_state.toml", "wadden_buggy1", incremental=True)
# unfortunatelly with the new conditional_overwrite instead of the assign const template,
# we can no longer repair this
# can be fixed by increasing window size or improving conditional overwrite template
self.synth_cannot_repair(sd_dir / "no_tri_state.toml", "wadden_buggy1", incremental=True)

def test_kgoliya_buggy2_orig_tb(self):
# missing default case
Expand Down

0 comments on commit 6f7513a

Please sign in to comment.