X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2Fshell%2Fmanpage-normalize.test;fp=test%2Fshell%2Fmanpage-normalize.test;h=6cd4948abade477a31f8bc9c4d8d7aed3768f80c;hb=1d58ef8858dd8a97702944f1884883a82ccd4fd8;hp=0000000000000000000000000000000000000000;hpb=e42a9a84c3866b7293abb98735c3e76bd12c4dda;p=hath.git diff --git a/test/shell/manpage-normalize.test b/test/shell/manpage-normalize.test new file mode 100644 index 0000000..6cd4948 --- /dev/null +++ b/test/shell/manpage-normalize.test @@ -0,0 +1,13 @@ +# Test the --normalize examples from the man page. + +# The "control group" example. +echo 127.0.0.1/8 | dist/build/hath/hath reduced +>>> +127.0.0.1/8 +>>>= 0 + +# The --normalize flag in action. +echo 127.0.0.1/8 | dist/build/hath/hath reduced --normalize +>>> +127.0.0.0/8 +>>>= 0