From 7128baeec61288d46e57bdf7c02395f05739f3b6 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Sun, 21 Jan 2024 18:35:57 +0100 Subject: [PATCH] test fix: can't use the same S4 class name in another test --- extendr-api/tests/set_class_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extendr-api/tests/set_class_tests.rs b/extendr-api/tests/set_class_tests.rs index a5ab01362e..e84efeefc7 100644 --- a/extendr-api/tests/set_class_tests.rs +++ b/extendr-api/tests/set_class_tests.rs @@ -7,7 +7,7 @@ use libR_sys::{R_compute_identical, Rboolean_TRUE, Rf_PrintValue}; fn test_what_is_returned_from_set_class() { with_r(|| { let mut a = list!(a = 42); - let a_class = a.set_class(&["class"]).unwrap(); + let a_class = a.set_class(&["class2"]).unwrap(); unsafe { Rf_PrintValue(a.get());