Skip to content

Commit

Permalink
clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsrainy committed Jul 27, 2023
1 parent 780b0d4 commit b357c69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/all/coredump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn test_coredump_has_stack() -> Result<()> {

let wat = r#"
(module
(func (export "a")
(func $a (export "a")
call $b
)
(func $b
Expand Down Expand Up @@ -100,10 +100,9 @@ fn test_coredump_has_modules_and_instances() -> Result<()> {

let e = a_func.call(&mut store, ()).unwrap_err();
let cd = e.downcast_ref::<WasmCoreDump>().unwrap();
dbg!(cd);
assert_eq!(cd.modules().len(), 2);
assert_eq!(cd.modules()[0], "foo");
assert_eq!(cd.modules()[1], "bar");
assert!(cd.modules().contains(&String::from("foo")));
assert!(cd.modules().contains(&String::from("bar")));
assert_eq!(cd.instances().len(), 2);
Ok(())
}
Expand Down

0 comments on commit b357c69

Please sign in to comment.