mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Fix a TODO by making conv_block_unblock_helper
consume the input. (#3787)
* Fix a TODO by making `conv_block_unblock_helper` consume the input.
This commit is contained in:
parent
0dbcdde64e
commit
08d3da8f6c
6 changed files with 46 additions and 23 deletions
|
@ -861,6 +861,33 @@ fn test_swab_257_test() {
|
|||
.stdout_is_fixture_bytes("seq-byte-values-odd.spec");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_block_lower() {
|
||||
new_ucmd!()
|
||||
.args(&["conv=block,lcase", "cbs=8"])
|
||||
.pipe_in_fixture("dd-block8-lowercase.test")
|
||||
.succeeds()
|
||||
.stdout_is_fixture_bytes("dd-block8-lowercase.spec");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_lower_block() {
|
||||
new_ucmd!()
|
||||
.args(&["conv=lcase,block", "cbs=8"])
|
||||
.pipe_in_fixture("dd-block8-lowercase.test")
|
||||
.succeeds()
|
||||
.stdout_is_fixture_bytes("dd-block8-lowercase.spec");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_unblock_lower() {
|
||||
new_ucmd!()
|
||||
.args(&["conv=unblock,lcase", "cbs=8"])
|
||||
.pipe_in_fixture("dd-unblock8-lowercase.test")
|
||||
.succeeds()
|
||||
.stdout_is_fixture_bytes("dd-unblock8-lowercase.spec");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_zeros_4k_conv_sync_obs_gt_ibs() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue