Skip to content

Commit ecd6943

Browse files
committed
Update tests
1 parent 9e2e0ad commit ecd6943

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

tests/unit/out/refcount/offsetof.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,7 @@ fn main_0() -> i32 {
102102
assert!(((*(*v.borrow()).b.borrow()) == 305419896_u32));
103103
let text: Value<Ptr<u8>> = Rc::new(RefCell::new(Ptr::from_string_literal(b"example-body")));
104104
let len: Value<usize> = Rc::new(RefCell::new(
105-
({
106-
let mut __i: usize = 0;
107-
while (*text.borrow()).offset(__i).read() != 0 {
108-
__i += 1;
109-
}
110-
__i
111-
})
112-
.wrapping_add(1_usize),
105+
((*text.borrow()).to_string_iterator().count()).wrapping_add(1_usize),
113106
));
114107
let total: Value<usize> = Rc::new(RefCell::new(
115108
((2_usize as u64).wrapping_add(((*len.borrow()) as u64)) as usize),

0 commit comments

Comments
 (0)