This commit is contained in:
Andras Schmelczer 2025-03-16 10:32:43 +00:00
parent 3649f335fe
commit 031628cff9
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 42 additions and 46 deletions

View file

@ -25,8 +25,9 @@ fn test_base64_to_bytes_error() {
#[wasm_bindgen_test(unsupported = test)]
fn merge_text() {
let left = b"hello ";
let right = b"world";
assert_eq!(merge(b"", left, right), b"hello world".to_vec());
let right = b"world ";
let result = merge(b"", left, right);
assert!(result == b"hello world ".to_vec() || result == b"world hello ".to_vec());
}
#[wasm_bindgen_test(unsupported = test)]