Skip to content

Commit

Permalink
add value size test
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Aug 22, 2024
1 parent 7d4935d commit d3fe56a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ fn assert_values_eq<'gc>(got: &Value<'gc, C, StdSystem<C>>, expected: &Value<'gc
}
}

#[test]
fn test_sizes() {
if core::mem::size_of::<Value<C, StdSystem<C>>>() > 16 {
panic!("values are too large!");
}
}

#[test]
fn test_note() {
for i in 0..=127 {
Expand Down

0 comments on commit d3fe56a

Please sign in to comment.