]> gitweb.michael.orlitzky.com - hath.git/blobdiff - test/shell/manpage-normalize.test
Document and test the new --normalize flag.
[hath.git] / test / shell / manpage-normalize.test
diff --git a/test/shell/manpage-normalize.test b/test/shell/manpage-normalize.test
new file mode 100644 (file)
index 0000000..6cd4948
--- /dev/null
@@ -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