Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.d/8623-fmt-module-global-ta-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Format `crates/perry/tests/module_global_typed_array_read.rs`, which landed
unformatted with #8617 and left `cargo fmt --check` red on `main`.
10 changes: 8 additions & 2 deletions crates/perry/tests/module_global_typed_array_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ fn module_global_float64array_read_is_inlined_and_bit_exact() {
let fast = run(&dir.path().join("fast"), dir.path());
let slow = run(&dir.path().join("slow"), dir.path());
assert_eq!(fast, EXPECTED, "fast-path output");
assert_eq!(slow, fast, "fast path must be bit-exact with js_typed_array_get");
assert_eq!(
slow, fast,
"fast path must be bit-exact with js_typed_array_get"
);
}

const I32_SOURCE: &str = r#"
Expand Down Expand Up @@ -161,5 +164,8 @@ fn module_global_int32array_read_is_inlined_and_bit_exact() {
let fast = run(&dir.path().join("fast32"), dir.path());
let slow = run(&dir.path().join("slow32"), dir.path());
assert_eq!(fast, I32_EXPECTED);
assert_eq!(slow, fast, "i32 fast path must be bit-exact with the runtime getter");
assert_eq!(
slow, fast,
"i32 fast path must be bit-exact with the runtime getter"
);
}
Loading