From 2a4b17a162ab83e74f65bd5517bdcea76f2116b4 Mon Sep 17 00:00:00 2001 From: Sharif Haason Date: Sun, 27 Nov 2022 17:32:18 -0500 Subject: [PATCH] Add tests for alternate base --- tests/integration_tests.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index e7a5716..afd66c7 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -551,3 +551,21 @@ mod group { ); } } + +mod base { + use super::hexyl; + use super::PrettyAssert; + + #[test] + fn base2() { + hexyl() + .arg("ascii") + .arg("--plain") + .arg("--base=binary") + .assert() + .success() + .pretty_stdout( + " 00110000 00110001 00110010 00110011 00110100 00110101 00110110 00110111 00111000 00111001 01100001 01100010 01100011 01100100 01100101 00001010 \n" + ); + } +} \ No newline at end of file