Permalink
Browse files

add more tests

  • Loading branch information...
1 parent 958e392 commit a4d2bbeeb1c68c8a50bc8623b72d312a5c8ab1a1 @michalliu committed Jun 16, 2014
Showing with 64 additions and 58 deletions.
  1. +0 −58 tests/1.json
  2. +1 −0 tests/json.json
  3. +1 −0 tests/sql.expected
  4. +1 −0 tests/sql.sql
  5. +51 −0 tests/xml.expected
  6. +10 −0 tests/xml.xml
View
@@ -1,58 +0,0 @@
-[
- "JSON Test Pattern pass1",
- {"object with 1 member":["array with 1 element"]},
- {},
- [],
- -42,
- true,
- false,
- null,
- {
- "integer": 1234567890,
- "real": -9876.543210,
- "e": 0.123456789e-12,
- "E": 1.234567890E+34,
- "": 23456789012E66,
- "zero": 0,
- "one": 1,
- "space": " ",
- "quote": "\"",
- "backslash": "\\",
- "controls": "\b\f\n\r\t",
- "slash": "/ & \/",
- "alpha": "abcdefghijklmnopqrstuvwyz",
- "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ",
- "digit": "0123456789",
- "0123456789": "digit",
- "special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?",
- "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A",
- "true": true,
- "false": false,
- "null": null,
- "array":[ ],
- "object":{ },
- "address": "50 St. James Street",
- "url": "http://www.JSON.org/",
- "comment": "// /* <!-- --",
- "# -- --> */": " ",
- " s p a c e d " :[1,2 , 3
-
-,
-
-4 , 5 , 6 ,7 ],"compact":[1,2,3,4,5,6,7],
- "jsontext": "{\"object with 1 member\":[\"array with 1 element\"]}",
- "quotes": "&#34; \u0022 %22 0x22 034 &#x22;",
- "\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?"
-: "A key can be any string"
- },
- 0.5 ,98.6
-,
-99.44
-,
-
-1066,
-1e1,
-0.1e1,
-1e-1,
-1e00,2e+00,2e-00
-,"rosebud"]
View
@@ -0,0 +1 @@
+["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[], -42, true, false, null,{"integer": 1234567890,"real": -9876.54321,"e": 1.23456789e-13,"E": 1.23456789e+34,"": 2.3456789012e+76,"zero": 0,"one": 1,"space":" ","quote":"\"","backslash":"\\","controls":"\b\f\n\r\t","slash":"/ & /","alpha":"abcdefghijklmnopqrstuvwyz","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","digit":"0123456789","0123456789":"digit","special":"`1~!@#$%^&*()_+-={':[,]}|;.</>?","hex":"ģ䕧覫췯ꯍ","true": true,"false": false,"null": null,"array":[],"object":{},"address":"50 St. James Street","url":"http://www.JSON.org/","comment":"// /* <!-- --","# -- --> */":" "," s p a c e d ":[1, 2, 3, 4, 5, 6, 7],"compact":[1, 2, 3, 4, 5, 6, 7],"jsontext":"{\"object with 1 member\":[\"array with 1 element\"]}","quotes":"&#34; \" %22 0x22 034 &#x22;","/\\\"쫾몾ꮘﳞ볚\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?":"A key can be any string"}, 0.5, 98.6, 99.44, 1066, 10, 1, 0.1, 1, 2, 2,"rosebud"]
View
@@ -0,0 +1 @@
+SELECT ca.proj_id AS proj_id, ca.ca_name AS proj_name, ca.ca_date_start AS proj_start, ca.ca_date_end AS proj_end,(SELECT COUNT(*) FROM rotations r WHERE r.proj_id = proj_id AND r.r_status = 'R' GROUP BY r.proj_id) r_count, (SELECT count(*) FROM rotations r WHERE r.proj_id = proj_id AND r.channel_id = 24) r_rtb_count FROM projs ca, clients c, proj_auth caa WHERE ca.client_id = 12345 AND ca.client_id = c.client_id AND ca_type = 'zzz' AND c.agency_id = 0 AND ca.client_id = NVL( caa.client_id, ca.client_id ) AND proj_id = NVL( caa.proj_id, proj_id ) AND caa.contact_id = 7890
View
@@ -0,0 +1 @@
+SELECT ca.proj_id AS proj_id, ca.ca_name AS proj_name, ca.ca_date_start AS proj_start, ca.ca_date_end AS proj_end,(SELECT COUNT(*) FROM rotations r WHERE r.proj_id = proj_id AND r.r_status = 'R' GROUP BY r.proj_id) r_count, (SELECT count(*) FROM rotations r WHERE r.proj_id = proj_id AND r.channel_id = 24) r_rtb_count FROM projs ca, clients c, proj_auth caa WHERE ca.client_id = 12345 AND ca.client_id = c.client_id AND ca_type = 'zzz' AND c.agency_id = 0 AND ca.client_id = NVL( caa.client_id, ca.client_id ) AND proj_id = NVL( caa.proj_id, proj_id ) AND caa.contact_id = 7890
View
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<rss version="2.0"
+ xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0"
+ xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
+ <channel>
+ <title>Yahoo! Weather - New York, NY</title>
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html</link>
+ <description>Yahoo! Weather for New York, NY</description>
+ <language>en-us</language>
+ <lastBuildDate>Mon, 16 Jun 2014 2:50 pm EDT</lastBuildDate>
+ <ttl>60</ttl>
+ <yweather:location city="New York" region="NY" country="United States"/>
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
+ <yweather:wind chill="80" direction="0" speed="7" />
+ <yweather:atmosphere humidity="40" visibility="10" pressure="30.13" rising="2" />
+ <yweather:astronomy sunrise="5:21 am" sunset="8:27 pm"/>
+ <image>
+ <title>Yahoo! Weather</title>
+ <width>142</width>
+ <height>18</height>
+ <link>http://weather.yahoo.com</link>
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
+ </image>
+ <item>
+ <title>Conditions for New York, NY at 2:50 pm EDT</title>
+ <geo:lat>40.71</geo:lat>
+ <geo:long>-74.01</geo:long>
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html</link>
+ <pubDate>Mon, 16 Jun 2014 2:50 pm EDT</pubDate>
+ <yweather:condition text="Fair" code="34" temp="80" date="Mon, 16 Jun 2014 2:50 pm EDT" />
+ <description>
+ <![CDATA[
+<img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br /><b>Current Conditions:</b><br />
+Fair, 80 F<BR /><BR /><b>Forecast:</b><BR />
+Mon - Mostly Sunny. High: 78 Low: 66<br />
+Tue - Partly Cloudy. High: 86 Low: 72<br />
+Wed - Partly Cloudy. High: 87 Low: 70<br />
+Thu - Scattered Thunderstorms. High: 84 Low: 64<br />
+Fri - Partly Cloudy. High: 79 Low: 61<br /><br /><a href="http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
+(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
+]]>
+ </description>
+ <yweather:forecast day="Mon" date="16 Jun 2014" low="66" high="78" text="Mostly Sunny" code="34" />
+ <yweather:forecast day="Tue" date="17 Jun 2014" low="72" high="86" text="Partly Cloudy" code="30" />
+ <yweather:forecast day="Wed" date="18 Jun 2014" low="70" high="87" text="Partly Cloudy" code="30" />
+ <yweather:forecast day="Thu" date="19 Jun 2014" low="64" high="84" text="Scattered Thunderstorms" code="38" />
+ <yweather:forecast day="Fri" date="20 Jun 2014" low="61" high="79" text="Partly Cloudy" code="30" />
+ <guid isPermaLink="false">USNY0996_2014_06_20_7_00_EDT</guid>
+ </item>
+ </channel>
+</rss>
View
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"><channel><title>Yahoo! Weather - New York, NY</title><link>http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html</link><description>Yahoo! Weather for New York, NY</description><language>en-us</language><lastBuildDate>Mon, 16 Jun 2014 2:50 pm EDT</lastBuildDate><ttl>60</ttl><yweather:location city="New York" region="NY" country="United States"/><yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/><yweather:wind chill="80" direction="0" speed="7" /><yweather:atmosphere humidity="40" visibility="10" pressure="30.13" rising="2" /><yweather:astronomy sunrise="5:21 am" sunset="8:27 pm"/><image><title>Yahoo! Weather</title><width>142</width><height>18</height><link>http://weather.yahoo.com</link><url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url></image><item><title>Conditions for New York, NY at 2:50 pm EDT</title><geo:lat>40.71</geo:lat><geo:long>-74.01</geo:long><link>http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html</link><pubDate>Mon, 16 Jun 2014 2:50 pm EDT</pubDate><yweather:condition text="Fair" code="34" temp="80" date="Mon, 16 Jun 2014 2:50 pm EDT" /><description><![CDATA[
+<img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br /><b>Current Conditions:</b><br />
+Fair, 80 F<BR /><BR /><b>Forecast:</b><BR />
+Mon - Mostly Sunny. High: 78 Low: 66<br />
+Tue - Partly Cloudy. High: 86 Low: 72<br />
+Wed - Partly Cloudy. High: 87 Low: 70<br />
+Thu - Scattered Thunderstorms. High: 84 Low: 64<br />
+Fri - Partly Cloudy. High: 79 Low: 61<br /><br /><a href="http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
+(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
+]]></description><yweather:forecast day="Mon" date="16 Jun 2014" low="66" high="78" text="Mostly Sunny" code="34" /><yweather:forecast day="Tue" date="17 Jun 2014" low="72" high="86" text="Partly Cloudy" code="30" /><yweather:forecast day="Wed" date="18 Jun 2014" low="70" high="87" text="Partly Cloudy" code="30" /><yweather:forecast day="Thu" date="19 Jun 2014" low="64" high="84" text="Scattered Thunderstorms" code="38" /><yweather:forecast day="Fri" date="20 Jun 2014" low="61" high="79" text="Partly Cloudy" code="30" /><guid isPermaLink="false">USNY0996_2014_06_20_7_00_EDT</guid></item></channel></rss>

0 comments on commit a4d2bbe

Please sign in to comment.