From eb0f57f40f2463a9969e8fddd89b61698410f3d6 Mon Sep 17 00:00:00 2001 From: Yuichiro Yamashita Date: Thu, 26 Dec 2024 22:54:21 +0900 Subject: [PATCH] chore(semantic): use `assert_eq!` instead of `assert!` (`crates/oxc_semantic/src/lib.rs`) (#8127) related to https://github.com/oxc-project/oxc/pull/8124 --- crates/oxc_semantic/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_semantic/src/lib.rs b/crates/oxc_semantic/src/lib.rs index 1680db8df736c..8dabf4e320411 100644 --- a/crates/oxc_semantic/src/lib.rs +++ b/crates/oxc_semantic/src/lib.rs @@ -312,7 +312,7 @@ mod tests { let allocator = Allocator::default(); let source_type: SourceType = SourceType::default().with_typescript(true); let semantic = get_semantic(&allocator, source, source_type); - assert!(semantic.symbols().references.len() == 1); + assert_eq!(semantic.symbols().references.len(), 1); } #[test]