Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
17
third-party/vendor/wasm-bindgen/tests/wasm/should_panic.rs
vendored
Normal file
17
third-party/vendor/wasm-bindgen/tests/wasm/should_panic.rs
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#[wasm_bindgen_test]
|
||||
#[should_panic]
|
||||
fn should_panic() {
|
||||
panic!()
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
#[should_panic = "error message"]
|
||||
fn should_panic_string() {
|
||||
panic!("error message")
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
#[should_panic(expected = "error message")]
|
||||
fn should_panic_expected() {
|
||||
panic!("error message")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue