Skip to content

Commit

Permalink
fix: ignore panic test on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Jun 21, 2024
1 parent 0ddf5f4 commit afbafe7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion starknet-core/src/types/byte_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ mod tests {

#[test]
#[should_panic]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
fn test_byte_array_to_string_invalid_utf8() {
let invalid = Felt::from_bytes_be_slice(b"\xF0\x90\x80");

Expand Down
1 change: 0 additions & 1 deletion starknet-core/src/types/bytes_31.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ mod tests {

#[test]
#[should_panic]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
fn test_bytes31_from_invalid_utf8() {
let invalid = b"Hello \xF0\x90\x80World";
let felt = Felt::from_bytes_be_slice(invalid);
Expand Down

0 comments on commit afbafe7

Please sign in to comment.