mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
chore: remove trailing commas
This commit is contained in:
parent
e4c7bd0641
commit
e5ffb5e902
2 changed files with 9 additions and 9 deletions
|
@ -133,7 +133,7 @@ mod tests {
|
|||
let buf = [0u8, 1u8, 2u8, 3u8];
|
||||
let res = block(&buf, 4, false, &mut rs);
|
||||
|
||||
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8],]);
|
||||
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8]]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -144,7 +144,7 @@ mod tests {
|
|||
|
||||
assert_eq!(
|
||||
res,
|
||||
vec![vec![0u8, 1u8, 2u8, 3u8, SPACE, SPACE, SPACE, SPACE],]
|
||||
vec![vec![0u8, 1u8, 2u8, 3u8, SPACE, SPACE, SPACE, SPACE]]
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ mod tests {
|
|||
let res = block(&buf, 4, false, &mut rs);
|
||||
|
||||
// Commented section(s) should be truncated and appear for reference only.
|
||||
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8 /*, 4u8*/],]);
|
||||
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8 /*, 4u8*/]]);
|
||||
assert_eq!(rs.records_truncated, 1);
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ mod tests {
|
|||
let buf = [0u8, 1u8, 2u8, 3u8, NEWLINE];
|
||||
let res = block(&buf, 4, false, &mut rs);
|
||||
|
||||
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8],]);
|
||||
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8]]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -258,7 +258,7 @@ mod tests {
|
|||
|
||||
assert_eq!(
|
||||
res,
|
||||
vec![vec![0u8, 1u8, 2u8, SPACE], vec![SPACE, SPACE, SPACE, SPACE],]
|
||||
vec![vec![0u8, 1u8, 2u8, SPACE], vec![SPACE, SPACE, SPACE, SPACE]]
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ mod tests {
|
|||
|
||||
assert_eq!(
|
||||
res,
|
||||
vec![vec![SPACE, SPACE, SPACE, SPACE], vec![0u8, 1u8, 2u8, 3u8],]
|
||||
vec![vec![SPACE, SPACE, SPACE, SPACE], vec![0u8, 1u8, 2u8, 3u8]]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -1951,7 +1951,7 @@ mod tests {
|
|||
#[test]
|
||||
fn test_tokenize_fields() {
|
||||
let line = "foo bar b x";
|
||||
assert_eq!(tokenize_helper(line, None), vec![0..3, 3..7, 7..9, 9..14,]);
|
||||
assert_eq!(tokenize_helper(line, None), vec![0..3, 3..7, 7..9, 9..14]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -1959,7 +1959,7 @@ mod tests {
|
|||
let line = " foo bar b x";
|
||||
assert_eq!(
|
||||
tokenize_helper(line, None),
|
||||
vec![0..7, 7..11, 11..13, 13..18,]
|
||||
vec![0..7, 7..11, 11..13, 13..18]
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1968,7 +1968,7 @@ mod tests {
|
|||
let line = "aaa foo bar b x";
|
||||
assert_eq!(
|
||||
tokenize_helper(line, Some('a')),
|
||||
vec![0..0, 1..1, 2..2, 3..9, 10..18,]
|
||||
vec![0..0, 1..1, 2..2, 3..9, 10..18]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue