]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - test/shell/weatherxml-backwards-teams-unsupported.test
Add a teams_are_normal function to TSN.XML.Weather.
[dead/htsn-import.git] / test / shell / weatherxml-backwards-teams-unsupported.test
diff --git a/test/shell/weatherxml-backwards-teams-unsupported.test b/test/shell/weatherxml-backwards-teams-unsupported.test
new file mode 100644 (file)
index 0000000..f9dee7b
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Some weatherxml documents (see man page) have the home/away teams
+# in reverse order. We want them to "succeed" so that they're deleted.
+#
+# 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-backwards-teams.xml
+>>> /Teams in reverse order in weatherxml.dtd \(test\/xml\/weatherxml-backwards-teams.xml\)/
+>>>= 0