Skip to content

Commit

Permalink
chore(ast): use assert_eq! instead of assert! (`crates/oxc_ast/sr…
Browse files Browse the repository at this point in the history
…c/lib.rs`) (#8125)

related to #8124
  • Loading branch information
baseballyama authored Dec 26, 2024
1 parent 777e13c commit 093ddd6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/oxc_ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ fn size_asserts() {

use crate::ast;

assert!(size_of::<ast::Statement>() == 16);
assert!(size_of::<ast::Expression>() == 16);
assert!(size_of::<ast::Declaration>() == 16);
assert!(size_of::<ast::BindingPatternKind>() == 16);
assert!(size_of::<ast::ModuleDeclaration>() == 16);
assert!(size_of::<ast::ClassElement>() == 16);
assert!(size_of::<ast::ExportDefaultDeclarationKind>() == 16);
assert!(size_of::<ast::AssignmentTargetPattern>() == 16);
assert!(size_of::<ast::AssignmentTargetMaybeDefault>() == 16);
assert!(size_of::<ast::AssignmentTargetProperty>() == 16);
assert!(size_of::<ast::TSLiteral>() == 16);
assert!(size_of::<ast::TSType>() == 16);
assert_eq!(size_of::<ast::Statement>(), 16);
assert_eq!(size_of::<ast::Expression>(), 16);
assert_eq!(size_of::<ast::Declaration>(), 16);
assert_eq!(size_of::<ast::BindingPatternKind>(), 16);
assert_eq!(size_of::<ast::ModuleDeclaration>(), 16);
assert_eq!(size_of::<ast::ClassElement>(), 16);
assert_eq!(size_of::<ast::ExportDefaultDeclarationKind>(), 16);
assert_eq!(size_of::<ast::AssignmentTargetPattern>(), 16);
assert_eq!(size_of::<ast::AssignmentTargetMaybeDefault>(), 16);
assert_eq!(size_of::<ast::AssignmentTargetProperty>(), 16);
assert_eq!(size_of::<ast::TSLiteral>(), 16);
assert_eq!(size_of::<ast::TSType>(), 16);
}

#[test]
Expand Down

0 comments on commit 093ddd6

Please sign in to comment.