mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-13 07:36:07 +00:00
webidl: update enum test to unwrap constructor results
Update the enum test to match the new constructor return values
This commit is contained in:
parent
fac73a2ea4
commit
5520da1ef6
@ -51,8 +51,8 @@ fn top_level_enum() {
|
|||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn test() {
|
pub fn test() {
|
||||||
let circle = Shape::new(ShapeType::Circle);
|
let circle = Shape::new(ShapeType::Circle).unwrap();
|
||||||
let square = Shape::new(ShapeType::Square);
|
let square = Shape::new(ShapeType::Square).unwrap();
|
||||||
assert!(circle.is_circle());
|
assert!(circle.is_circle());
|
||||||
assert!(!circle.is_square());
|
assert!(!circle.is_square());
|
||||||
assert!(square.is_square());
|
assert!(square.is_square());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user