From 3ad6e026dce34aeac0598124f76b89214265af16 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 17 Oct 2014 13:12:16 -0400 Subject: [PATCH] Add two more samples of weird scoresxml. --- test/shell/import-duplicates.test | 4 ++-- test/xml/scoresxml-empty-numeral.xml | 1 + test/xml/scoresxml-empty-type.xml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 test/xml/scoresxml-empty-numeral.xml create mode 100644 test/xml/scoresxml-empty-type.xml diff --git a/test/shell/import-duplicates.test b/test/shell/import-duplicates.test index 656bd8a..d2ea767 100644 --- a/test/shell/import-duplicates.test +++ b/test/shell/import-duplicates.test @@ -16,7 +16,7 @@ rm -f shelltest.sqlite3 # and a newsxml that aren't really supposed to import. find ./test/xml -maxdepth 1 -name '*.xml' | wc -l >>> -36 +38 >>>= 0 # Run the imports again; we should get complaints about the duplicate @@ -24,7 +24,7 @@ find ./test/xml -maxdepth 1 -name '*.xml' | wc -l # occurrences of the string 'ERROR'. ./dist/build/htsn-import/htsn-import -c 'shelltest.sqlite3' test/xml/*.xml 2>&1 | grep ERROR | wc -l >>> -64 +68 >>>= 0 # Finally, clean up after ourselves. diff --git a/test/xml/scoresxml-empty-numeral.xml b/test/xml/scoresxml-empty-numeral.xml new file mode 100644 index 0000000..2fac3a0 --- /dev/null +++ b/test/xml/scoresxml-empty-numeral.xml @@ -0,0 +1 @@ + 21984547 BC-ACF+109:104*11712999 Scores NBA Sacramento CA USA Sacramento Brooklyn 117 129 FINAL October 15, 2014, at 10:17 AM ET \ No newline at end of file diff --git a/test/xml/scoresxml-empty-type.xml b/test/xml/scoresxml-empty-type.xml new file mode 100644 index 0000000..46df72b --- /dev/null +++ b/test/xml/scoresxml-empty-type.xml @@ -0,0 +1 @@ + 21986921 BC-ADP+126:141* 4 6 3R 1:05 19289 19289 Scores NHL Edmonton ALBERTA CANADA Arizona AZ USA Regular Edmonton Arizona 4 6 1:05 3 Period Lauri Korpikoski slap shot is over the net. October 16, 2014, at 01:27 AM ET \ No newline at end of file -- 2.43.2