Skip to content

Commit

Permalink
Remove a now-useless test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceejbot committed Jan 10, 2024
1 parent 0758980 commit 1a53b78
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/controller/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,4 @@ mod tests {
let converted = convert_to_utf8(bytes.clone());
assert_eq!(converted, utf8_version);
}

#[test]
fn utf16le_is_decoded() {
let bytes = vec![
36, 0, 83, 0, 111, 0, 117, 0, 108, 0, 115, 0, 121, 0, 72, 0, 85, 0, 68, 0, 9, 0, 83, 0,
111, 0, 117, 0, 108, 0, 115, 0, 121, 0, 32, 0, 72, 0, 85, 0, 68, 0,
];
assert_eq!(bytes.len(), 42);
let converted = convert_to_utf8(bytes.clone());
assert_eq!(converted.len(), bytes.len() / 2);
assert_eq!(converted, "$SoulsyHUD Soulsy HUD");
}
}

0 comments on commit 1a53b78

Please sign in to comment.