mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
1 parent
524a6c607f
commit
9432677d3a
3 files changed
+46
-10
No files matched your search
@@ -111,3 +111,18 @@ fn display_offset_and_skip() {
|
||||
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘\n",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fails_for_zero_or_negative_blocksize() {
|
||||
hexyl()
|
||||
.arg("ascii")
|
||||
.arg("--block-size=0")
|
||||
.assert()
|
||||
.failure();
|
||||
|
||||
hexyl()
|
||||
.arg("ascii")
|
||||
.arg("--block-size=-16")
|
||||
.assert()
|
||||
.failure();
|
||||
}
|
||||
Reference in new issue
Block a user