Skip to content

Commit

Permalink
feat: add more module tests (#492)
Browse files Browse the repository at this point in the history
* Update rom example

The rom/romlex example now compiles.  However, we still need some test
traces.

* Add mod / mul examples.

* Add tests for mod/mul/gas/mmu/exp/rom

This adds tests for these modules, along with suitable test traces.
However, exp and mmu currently require perspectives, so these tests are
not enabled.
  • Loading branch information
DavePearce authored Dec 21, 2024
1 parent 91f74ce commit f039ee5
Show file tree
Hide file tree
Showing 13 changed files with 6,051 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkg/test/valid_corset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,32 @@ func TestSlow_Mmio(t *testing.T) {
Check(t, true, "mmio")
}

func TestSlow_Rom(t *testing.T) {
Check(t, true, "rom")
}

/*
func TestSlow_Mmu(t *testing.T) {
Check(t, true, "mmu")
} */

func TestSlow_Gas(t *testing.T) {
Check(t, true, "gas")
}

/* #396
func TestSlow_Exp(t *testing.T) {
Check(t, true, "exp")
} */

func TestSlow_Mul(t *testing.T) {
Check(t, true, "mul")
}

func TestSlow_Mod(t *testing.T) {
Check(t, true, "mod")
}

// ===================================================================
// Test Helpers
// ===================================================================
Expand Down
176 changes: 176 additions & 0 deletions testdata/exp.accepts

Large diffs are not rendered by default.

Loading

0 comments on commit f039ee5

Please sign in to comment.