diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-07 00:00:31 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-07 00:00:31 -0500 |
| commit | bd80e64058948c3a4e7f068f0075789ae208c353 (patch) | |
| tree | 55dac501e99c687ec4e0654c6e410159778cdd02 /rust | |
| parent | ad32948e0987659da1063252838e8aac1faf7bf5 (diff) | |
Update types Rust test to check for type deletion
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/tests/types.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rust/tests/types.rs b/rust/tests/types.rs index bb748e49..63e9542b 100644 --- a/rust/tests/types.rs +++ b/rust/tests/types.rs @@ -73,5 +73,10 @@ fn add_type_to_view(_session: &Session, empty_view: &BinaryView) { let test_type = Type::int(4, true); empty_view.define_auto_type("test", "me", &test_type); assert!(empty_view.type_by_name("test").is_some()); - assert!(empty_view.type_by_id("me").is_some()); + empty_view.undefine_auto_type( + empty_view + .type_id_by_name("test") + .expect("Failed to get type id"), + ); + assert!(empty_view.type_by_name("test").is_none()); } |
