mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
fmt
This commit is contained in:
parent
07dc4686f3
commit
5d703405d2
1 changed files with 2 additions and 2 deletions
|
|
@ -261,8 +261,8 @@ fn test_read_str_no_null_termination_be() {
|
|||
#[test]
|
||||
fn test_read_str_le() {
|
||||
let bytes = vec![
|
||||
b'h', b'e', b'l', b'l', b'o', b' ', b'w', b'o',
|
||||
b'r', b'l', b'd', 0, b'f', b'o', b'o', 0, 0, 0, 0, 0,
|
||||
b'h', b'e', b'l', b'l', b'o', b' ', b'w', b'o', b'r', b'l', b'd', 0, b'f', b'o', b'o', 0,
|
||||
0, 0, 0, 0,
|
||||
];
|
||||
let buffer = BitReadBuffer::new(&bytes, LittleEndian);
|
||||
assert_eq!(buffer.read_string(0, Some(3)).unwrap(), "hel".to_owned());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue