Fix wiggle tests
This commit is contained in:
committed by
Andrew Brown
parent
df9c725fa0
commit
fa98f0bc91
@@ -88,7 +88,7 @@ impl HelloStringExercise {
|
||||
self.test_word.len() as i32,
|
||||
self.return_ptr_loc.ptr as i32,
|
||||
);
|
||||
assert_eq!(res, Ok(types::Errno::Ok.into()), "hello string errno");
|
||||
assert_eq!(res, Ok(types::Errno::Ok as i32), "hello string errno");
|
||||
|
||||
let given = host_memory
|
||||
.ptr::<u32>(self.return_ptr_loc.ptr)
|
||||
@@ -209,7 +209,7 @@ impl MultiStringExercise {
|
||||
self.c.len() as i32,
|
||||
self.return_ptr_loc.ptr as i32,
|
||||
);
|
||||
assert_eq!(res, Ok(types::Errno::Ok.into()), "multi string errno");
|
||||
assert_eq!(res, Ok(types::Errno::Ok as i32), "multi string errno");
|
||||
|
||||
let given = host_memory
|
||||
.ptr::<u32>(self.return_ptr_loc.ptr)
|
||||
@@ -287,7 +287,7 @@ impl OverlappingStringExercise {
|
||||
a_len - self.offset_c as i32,
|
||||
self.return_ptr_loc.ptr as i32,
|
||||
);
|
||||
assert_eq!(res, Ok(types::Errno::Ok.into()), "multi string errno");
|
||||
assert_eq!(res, Ok(types::Errno::Ok as i32), "multi string errno");
|
||||
|
||||
let given = host_memory
|
||||
.ptr::<u32>(self.return_ptr_loc.ptr)
|
||||
|
||||
Reference in New Issue
Block a user