From 82a3bcaec3c0d54637f2f2a19f6d189a03d1ee8c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 17 Oct 2014 11:37:04 -0400 Subject: [PATCH] Add sample of Odds_XML with an empty casino. --- test/shell/import-duplicates.test | 4 ++-- test/xml/Odds_XML-empty-casino.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 test/xml/Odds_XML-empty-casino.xml diff --git a/test/shell/import-duplicates.test b/test/shell/import-duplicates.test index 1eb256d..656bd8a 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 >>> -35 +36 >>>= 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 >>> -62 +64 >>>= 0 # Finally, clean up after ourselves. diff --git a/test/xml/Odds_XML-empty-casino.xml b/test/xml/Odds_XML-empty-casino.xml new file mode 100644 index 0000000..55276ac --- /dev/null +++ b/test/xml/Odds_XML-empty-casino.xml @@ -0,0 +1 @@ + 21985005 ADO;NHL-ODDS Odds NHL Las Vegas National Hockey League Line Current Line as of 12:30 P.M. ET 19287 10/15/2014 08:00 PM 123 051 CAL Calgary +225 +230 +240 +220 +225 124 052 CHI Chicago -265 -270 -280 -260 -265 5.5p 5.5u 5.5p 5.5p 5.5p 19285 10/15/2014 08:00 PM 121 053 BOS Boston -120 -120 -125 -115 -120 125 054 DET Detroit even even +105 -105 even 5p 5u 5p 5p 5p 19289 10/15/2014 10:30 PM 126 055 EDM Edmonton +160 +160 +165 +165 +165 141 056 ARI Arizona -185 -190 -190 -185 -185 5.5u 5.5u 5.5u 5.5u 5.5u October 15, 2014, at 12:27 PM ET \ No newline at end of file -- 2.43.2