Use *.wat instead of *.wit for text files (#1901)

The `*.wit` extension is actually intended to mean "WebAssembly Instance
Type", not "WebAssembly Interface Types". The `*.wat` text format
already will have support for annotations, and wasm interface types are
just an extension of that!
This commit is contained in:
Alex Crichton
2019-12-11 16:22:35 -08:00
committed by GitHub
parent 090109dea7
commit c564eb72b1
14 changed files with 3 additions and 3 deletions

View File

@ -109,8 +109,8 @@ fn runtest(test: &Path) -> Result<()> {
if interface_types {
let wasm = td.path().join("reference_test.wasm");
wit_validator::validate(&fs::read(&wasm)?)?;
let wit = sanitize_wasm(&wasm)?;
assert_same(&wit, &test.with_extension("wit"))?;
let wat = sanitize_wasm(&wasm)?;
assert_same(&wat, &test.with_extension("wat"))?;
} else {
let js = fs::read_to_string(td.path().join("reference_test.js"))?;
assert_same(&js, &test.with_extension("js"))?;