Closed ahuoguo closed 3 weeks ago
wasm-tools is my god https://github.com/bytecodealliance/wasm-tools/tree/main/tests/local/component-model
https://github.com/bytecodealliance/wasm-tools/blob/main/tests/roundtrip.rs#L5 maybe we should redesign the roundtrip tests like this
https://github.com/bytecodealliance/wasm-tools/blob/main/tests/roundtrip.rs#L269-L297
Testing strategy needs to be reworked in light of stuff getting renamed and Sections. Current idea is to impl
Eq
and PartialEq
for Component
on our own which goes through the Component
in the order of the sections and then compares the IR.
The spec test is not there yet https://github.com/WebAssembly/component-model/tree/main/spec