mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-25 05:31:33 +00:00
small test
This commit is contained in:
parent
4c19461753
commit
c96ccdf5bb
@ -1211,3 +1211,15 @@ fn ifelse() {
|
||||
- 1; // minus Opcode::Else itself
|
||||
assert_eq!(before_else, after_else);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn display() {
|
||||
let opcode = Opcode::GetLocal(0);
|
||||
assert_eq!("get_local 0", format!("{}", opcode));
|
||||
|
||||
let opcode = Opcode::F64Store(0, 24);
|
||||
assert_eq!("f64.store offset=24", format!("{}", opcode));
|
||||
|
||||
let opcode = Opcode::I64Store(0, 0);
|
||||
assert_eq!("i64.store", format!("{}", opcode));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user