Fix wiggle tests
This commit is contained in:
committed by
Andrew Brown
parent
df9c725fa0
commit
fa98f0bc91
@@ -152,12 +152,12 @@ impl PointersAndEnumsExercise {
|
||||
let e = pointers::pointers_and_enums(
|
||||
&ctx,
|
||||
&host_memory,
|
||||
self.input1.into(),
|
||||
self.input1 as i32,
|
||||
self.input2_loc.ptr as i32,
|
||||
self.input3_loc.ptr as i32,
|
||||
self.input4_ptr_loc.ptr as i32,
|
||||
);
|
||||
assert_eq!(e, Ok(types::Errno::Ok.into()), "errno");
|
||||
assert_eq!(e, Ok(types::Errno::Ok as i32), "errno");
|
||||
|
||||
// Implementation of pointers_and_enums writes input3 to the input2_loc:
|
||||
let written_to_input2_loc: i32 = host_memory
|
||||
@@ -166,8 +166,7 @@ impl PointersAndEnumsExercise {
|
||||
.expect("input2 ref");
|
||||
|
||||
assert_eq!(
|
||||
written_to_input2_loc,
|
||||
self.input3.into(),
|
||||
written_to_input2_loc, self.input3 as i32,
|
||||
"pointers_and_enums written to input2"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user