diff --git a/fish-rust/src/color.rs b/fish-rust/src/color.rs index 54f59c2b7..c668ec7e5 100644 --- a/fish-rust/src/color.rs +++ b/fish-rust/src/color.rs @@ -502,24 +502,3 @@ fn test_term16_color_for_rgb() { } } } - -crate::ffi_tests::add_test!("test_colors_ffi", || { - use autocxx::WithinUniquePtr; - use moveit::moveit; - assert_eq!(RgbColor::WHITE, moveit!(rgb_color_t::white()).from_ffi()); - assert_eq!(RgbColor::BLACK, moveit!(rgb_color_t::black()).from_ffi()); - assert_eq!(RgbColor::RESET, moveit!(rgb_color_t::reset()).from_ffi()); - assert_eq!(RgbColor::NORMAL, moveit!(rgb_color_t::normal()).from_ffi()); - assert_eq!(RgbColor::NONE, moveit!(rgb_color_t::none()).from_ffi()); - - let mut cxx_color = rgb_color_t::black().within_unique_ptr(); - cxx_color.as_mut().unwrap().set_bold(true); - cxx_color.as_mut().unwrap().set_dim(true); - - let mut rust_color = RgbColor::BLACK; - assert_ne!(rust_color, cxx_color.as_ref().unwrap().from_ffi()); - rust_color.set_bold(true); - assert_ne!(rust_color, cxx_color.as_ref().unwrap().from_ffi()); - rust_color.set_dim(true); - assert_eq!(rust_color, cxx_color.as_ref().unwrap().from_ffi()); -}); diff --git a/fish-rust/src/wchar_ffi.rs b/fish-rust/src/wchar_ffi.rs index 5ee11fb39..56acfe799 100644 --- a/fish-rust/src/wchar_ffi.rs +++ b/fish-rust/src/wchar_ffi.rs @@ -255,10 +255,3 @@ fn as_wstr(&self) -> &wstr { wstr::from_char_slice(self.chars()) } } - -use crate::ffi_tests::add_test; -add_test!("test_wcstring_list_ffi_t", || { - let data: Vec = wcstring_list_ffi_t::get_test_data().from_ffi(); - assert_eq!(data, vec!["foo", "bar", "baz"]); - wcstring_list_ffi_t::check_test_data(data.to_ffi()); -});