]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - test/shell/weatherxml-type2-unsupported.test
Add a function to TSN.XML.Weather to detect the unsupported second type.
[dead/htsn-import.git] / test / shell / weatherxml-type2-unsupported.test
diff --git a/test/shell/weatherxml-type2-unsupported.test b/test/shell/weatherxml-type2-unsupported.test
new file mode 100644 (file)
index 0000000..d68eb6f
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# The second type (see the man page) of weatherxml is unsupported, but
+# we don't want to consider it an error when we encounter one, because
+# we want to delete it.
+#
+# The real output contains escape characters so we use a regexp to get
+# a pretty good idea of what it says.
+
+./dist/build/htsn-import/htsn-import test/xml/weatherxml-type2.xml
+>>> /Unsupported weatherxml\.dtd type \(test\/xml\/weatherxml-type2.xml\)/
+>>>= 0