tests: exercise array getters

This commit is contained in:
Pat Hickey
2020-09-03 16:41:10 -07:00
parent 580c236dee
commit 776f12ae3c
5 changed files with 221 additions and 7 deletions

View File

@@ -125,7 +125,11 @@ impl MultiStringExercise {
Just(a.clone()),
Just(b.clone()),
Just(c.clone()),
HostMemory::byte_slice_strat(a.len() as u32, &MemAreas::from([return_ptr_loc])),
HostMemory::byte_slice_strat(
a.len() as u32,
1,
&MemAreas::from([return_ptr_loc]),
),
Just(return_ptr_loc),
)
})
@@ -137,6 +141,7 @@ impl MultiStringExercise {
Just(sa_ptr_loc),
HostMemory::byte_slice_strat(
b.len() as u32,
1,
&MemAreas::from([sa_ptr_loc, return_ptr_loc]),
),
Just(return_ptr_loc),
@@ -151,6 +156,7 @@ impl MultiStringExercise {
Just(sb_ptr_loc),
HostMemory::byte_slice_strat(
c.len() as u32,
1,
&MemAreas::from([sa_ptr_loc, sb_ptr_loc, return_ptr_loc]),
),
Just(return_ptr_loc),