mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-26 22:32:12 +00:00
Add truthy_falsy tests to main.rs
This commit is contained in:
parent
0ee7236698
commit
8b99fdc745
@ -36,6 +36,7 @@ pub mod rethrow;
|
|||||||
pub mod simple;
|
pub mod simple;
|
||||||
pub mod slice;
|
pub mod slice;
|
||||||
pub mod structural;
|
pub mod structural;
|
||||||
|
pub mod truthy_falsy;
|
||||||
pub mod u64;
|
pub mod u64;
|
||||||
pub mod validate_prt;
|
pub mod validate_prt;
|
||||||
pub mod variadic;
|
pub mod variadic;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
use wasm_bindgen::prelude::*;
|
||||||
|
use wasm_bindgen_test::*;
|
||||||
|
|
||||||
#[wasm_bindgen_test]
|
#[wasm_bindgen_test]
|
||||||
fn test_is_truthy() {
|
fn test_is_truthy() {
|
||||||
assert_eq!(JsValue::from(0).is_truthy(), false);
|
assert_eq!(JsValue::from(0).is_truthy(), false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user