]> granicus.if.org Git - jq/commitdiff
Fix tests for #432
authorNicolas Williams <nico@cryptonector.com>
Fri, 8 Aug 2014 23:00:01 +0000 (18:00 -0500)
committerNicolas Williams <nico@cryptonector.com>
Fri, 8 Aug 2014 23:17:58 +0000 (18:17 -0500)
tests/all.test

index c57c6d0745f758843bcd8721e9855adcaffcc07e..c73e27a3d261419e093720f72fc6a846e6891562 100644 (file)
@@ -828,7 +828,6 @@ capture("(?<a>[a-z]+)-(?<n>[0-9]+)")
 [.[] | sub(", "; ":")]
 ["a,b, c, d, e,f", ", a,b, c, d, e,f, "]
 ["a,b:c, d, e,f",":a,b, c, d, e,f, "]
-, #2 [", ",", ",", "],["a,b","c","d","e,f"]], #3 [[":a,b, c, d, e,f,"],[":a,b:c:d:e,f:"],[", ",", ",", ",", ",", "],["","a,b","c","d","e,f",""]]]
 
 [.[] | gsub(", "; ":")]
 ["a,b, c, d, e,f",", a,b, c, d, e,f, "]
@@ -836,9 +835,11 @@ capture("(?<a>[a-z]+)-(?<n>[0-9]+)")
 
 [.[] | scan(", ")]
 ["a,b, c, d, e,f",", a,b, c, d, e,f, "]
+[", ",", ",", ",", ",", ",", ",", ",", "]
 
 [.[] | split(", ")]
 ["a,b, c, d, e,f",", a,b, c, d, e,f, "]
+[["a,b","c","d","e,f"],["","a,b","c","d","e,f",""]]
 
 ########################
 [.[]|[[sub(", *";":")], [gsub(", *";":")], [scan(", *")], split(", *")]]