Formatted files

This commit is contained in:
Syrus
2019-01-23 12:35:14 -08:00
parent 70c512ecb3
commit 83d0c3e647
6 changed files with 69 additions and 183 deletions

View File

@ -144,8 +144,8 @@ mod tests {
fn should_detect_emscripten_files() {
const wast_bytes: &[u8] = include_bytes!("tests/is_emscripten_true.wast");
let wasm_binary = wat2wasm(wast_bytes.to_vec()).expect("Can't convert to wasm");
let module =
compile_with(&wasm_binary[..], &CraneliftCompiler::new()).expect("WASM can't be compiled");
let module = compile_with(&wasm_binary[..], &CraneliftCompiler::new())
.expect("WASM can't be compiled");
let module = Arc::new(module);
assert!(is_emscripten_module(&module));
}
@ -154,8 +154,8 @@ mod tests {
fn should_detect_non_emscripten_files() {
const wast_bytes: &[u8] = include_bytes!("tests/is_emscripten_false.wast");
let wasm_binary = wat2wasm(wast_bytes.to_vec()).expect("Can't convert to wasm");
let module =
compile_with(&wasm_binary[..], &CraneliftCompiler::new()).expect("WASM can't be compiled");
let module = compile_with(&wasm_binary[..], &CraneliftCompiler::new())
.expect("WASM can't be compiled");
let module = Arc::new(module);
assert!(!is_emscripten_module(&module));
}