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