Skip to content

Commit

Permalink
Test + fmt fix (#646)
Browse files Browse the repository at this point in the history
* Test + fmt fix

* Use u64 instead of u128 in test
  • Loading branch information
Paul Lancaster authored Aug 20, 2020
1 parent 13f7374 commit 8ade420
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions boa/src/exec/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,9 @@ mod in_operator {
let bar_val = forward_val(&mut engine, "bar").unwrap();
let bar_obj = bar_val.as_object().unwrap();
let foo_val = forward_val(&mut engine, "Foo").unwrap();
let foo_obj = foo_val.as_object().unwrap();
assert!(bar_obj
.prototype()
.strict_equals(&foo_obj.get_field("prototype").unwrap()));
.strict_equals(&foo_val.get_field("prototype")));
}
}

Expand Down Expand Up @@ -967,7 +966,7 @@ fn to_length() {
assert_eq!(
Value::number(100000000000.0)
.to_length(&mut engine)
.unwrap(),
.unwrap() as u64,
100000000000
);
assert_eq!(
Expand Down

0 comments on commit 8ade420

Please sign in to comment.