Fix tests that were broken from the last commit

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-09-24 09:05:31 -07:00
parent 078aef70ea
commit d69a60f42c

View File

@@ -905,7 +905,7 @@ fn test_obj_vtable() {
let to_string_ptr = to_string_ptr.unwrap(); let to_string_ptr = to_string_ptr.unwrap();
assert!(obj_is_inst::<MethodInst>(&to_string_ptr)); assert!(obj_is_inst::<MethodInst>(&to_string_ptr));
with_obj_downcast(to_string_ptr.clone(), |method: &MethodInst| { with_obj_downcast(to_string_ptr.clone(), |method: &MethodInst| {
assert!(method.self_binding.borrow().equals(&*str1.borrow())); assert!(method.self_binding().borrow().equals(&*str1.borrow()));
}); });
// now get the method's to_string ptr // now get the method's to_string ptr
@@ -921,7 +921,7 @@ fn test_obj_vtable() {
assert!(obj_is_inst::<MethodInst>(&method_to_string_ptr)); assert!(obj_is_inst::<MethodInst>(&method_to_string_ptr));
with_obj_downcast(method_to_string_ptr.clone(), |method: &MethodInst| { with_obj_downcast(method_to_string_ptr.clone(), |method: &MethodInst| {
assert!(method assert!(method
.self_binding .self_binding()
.borrow() .borrow()
.equals(&*to_string_ptr.borrow())); .equals(&*to_string_ptr.borrow()));
}); });