diff options
| author | Mason Reed <mason@vector35.com> | 2025-12-09 16:51:14 -0500 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-12-10 17:35:19 -0500 |
| commit | 040976497749aaa02d54e125ce2b34300213bfb0 (patch) | |
| tree | fb3e62204e8d9256850669f1751c6c8f3391a1d5 /rust/tests | |
| parent | 917fdccb6be2da0e2a4d2346bf615d60aaa17f77 (diff) | |
[Rust] New type for `TypeArchiveId`
Prevents type confusions considering there are at times, three different id types being referred to in the type archive API
Diffstat (limited to 'rust/tests')
| -rw-r--r-- | rust/tests/type_archive.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/tests/type_archive.rs b/rust/tests/type_archive.rs index 7f0bd2f0..12fcec9d 100644 --- a/rust/tests/type_archive.rs +++ b/rust/tests/type_archive.rs @@ -23,4 +23,8 @@ fn test_create_archive() { .expect("Found test type"); assert_eq!(test_type.width(), 7); assert_eq!(test_type.type_class(), TypeClass::IntegerTypeClass); + + let lookup_type_archive = + TypeArchive::lookup_by_id(&type_archive.id()).expect("Failed to lookup type archive"); + assert_eq!(lookup_type_archive, type_archive); } |
