Remove is_binary from API

This commit is contained in:
Andras Schmelczer 2025-11-03 21:36:21 +00:00
parent 6191d1adb3
commit e6615463ed
7 changed files with 41 additions and 83 deletions

View file

@ -55,13 +55,6 @@ fn test_merge_binary() {
);
}
#[wasm_bindgen_test(unsupported = test)]
fn test_is_binary() {
assert!(is_binary(&[0, 159, 146, 150]));
assert!(is_binary(&[0, 12]));
assert!(!is_binary(b"hello"));
}
#[wasm_bindgen_test(unsupported = test)]
fn test_get_compact_diff() {
let parent = "hello ";
@ -69,8 +62,3 @@ fn test_get_compact_diff() {
let result = get_compact_diff(parent, &changed.into(), BuiltinTokenizer::Word);
assert_eq!(result, "{\"operations\":[-6,\"world\"],\"cursors\":[]}");
}
#[wasm_bindgen_test(unsupported = test)]
fn test_is_binary_empty() {
assert!(!is_binary(b""));
}