Skip to content

Commit

Permalink
test: demangle function names in Rust compilation tests
Browse files Browse the repository at this point in the history
The function names in both the .mir and .wat files are demangled in tests
before `expect!` comparison. This makes tests stable when rust toolchain
version changes and more readable.
  • Loading branch information
greenhat authored and bitwalker committed Oct 23, 2023
1 parent 5a003b8 commit 5e8d197
Show file tree
Hide file tree
Showing 7 changed files with 771 additions and 755 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ wat = "1.0.69"
expect-test = "1.4.1"
wasmprinter = "0.2.63"
sha2 = "0.10"
rustc-demangle = {version = "0.1.19", features = ["std"]}
Loading

0 comments on commit 5e8d197

Please sign in to comment.