]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - test/shell/news-double-sms-unsupported.test
Add a has_only_single_sms function to TSN.XML.News.
[dead/htsn-import.git] / test / shell / news-double-sms-unsupported.test
diff --git a/test/shell/news-double-sms-unsupported.test b/test/shell/news-double-sms-unsupported.test
new file mode 100644 (file)
index 0000000..936338c
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# More than one <SMS> in a newsxml document 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/newsxml-multiple-sms.xml
+>>> /Unsupported newsxml\.dtd with multiple SMS \(test\/xml\/newsxml-multiple-sms.xml\)/
+>>>= 0