summaryrefslogtreecommitdiffstats
path: root/tests/optional.test
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2016-01-18 12:17:58 -0600
committerNicolas Williams <nico@cryptonector.com>2016-01-18 12:17:58 -0600
commit6c635998f8b5c8402c4954fcea740db09e77d541 (patch)
tree0fafd25ccb8ef0370029a29ba2961839d0a46e04 /tests/optional.test
parent7835a724d65708f4511e5d26c5ae9a1a5c1da576 (diff)
Always test sort_by/group_by post-#1082
Diffstat (limited to 'tests/optional.test')
-rw-r--r--tests/optional.test11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/optional.test b/tests/optional.test
index aabe3912..0ee1fb27 100644
--- a/tests/optional.test
+++ b/tests/optional.test
@@ -1,16 +1,5 @@
# See tests/jq.test and the jq manual for more information.
-# As long as we use the C qsort() function, this test can fail if the C
-# qsort() implementation we get is not stable (Quicksort is not stable).
-
-(sort_by(.b) | sort_by(.a)), sort_by(.a, .b), sort_by(.b, .c), group_by(.b), group_by(.a + .b - .c == 2)
-[{"a": 1, "b": 4, "c": 14}, {"a": 4, "b": 1, "c": 3}, {"a": 1, "b": 4, "c": 3}, {"a": 0, "b": 2, "c": 43}]
-[{"a": 0, "b": 2, "c": 43}, {"a": 1, "b": 4, "c": 14}, {"a": 1, "b": 4, "c": 3}, {"a": 4, "b": 1, "c": 3}]
-[{"a": 0, "b": 2, "c": 43}, {"a": 1, "b": 4, "c": 14}, {"a": 1, "b": 4, "c": 3}, {"a": 4, "b": 1, "c": 3}]
-[{"a": 4, "b": 1, "c": 3}, {"a": 0, "b": 2, "c": 43}, {"a": 1, "b": 4, "c": 3}, {"a": 1, "b": 4, "c": 14}]
-[[{"a": 4, "b": 1, "c": 3}], [{"a": 0, "b": 2, "c": 43}], [{"a": 1, "b": 4, "c": 14}, {"a": 1, "b": 4, "c": 3}]]
-[[{"a": 1, "b": 4, "c": 14}, {"a": 0, "b": 2, "c": 43}], [{"a": 4, "b": 1, "c": 3}, {"a": 1, "b": 4, "c": 3}]]
-
# strptime() is not available on mingw/WIN32
[strptime("%Y-%m-%dT%H:%M:%SZ")|(.,mktime)]
"2015-03-05T23:51:47Z"