summaryrefslogtreecommitdiffstats
path: root/tests/man.test
diff options
context:
space:
mode:
authoritchyny <itchyny@cybozu.co.jp>2023-07-18 08:17:21 +0900
committerGitHub <noreply@github.com>2023-07-18 08:17:21 +0900
commit9e4c71558aeeccc4c9c3ba4cd21451d9f3e047fc (patch)
treee7f23b744e9eca5be366d7460674c3db74d56680 /tests/man.test
parent4b3090a9abba3fa5b94a46c5f44944deec17d5d4 (diff)
Split man.test to make tests pass without oniguruma (#2722)
Diffstat (limited to 'tests/man.test')
-rw-r--r--tests/man.test44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/man.test b/tests/man.test
index 426d0d4b..25aeb9dd 100644
--- a/tests/man.test
+++ b/tests/man.test
@@ -564,10 +564,6 @@ implode
[65, 66, 67]
"ABC"
-split(", ")
-"a, b,c,d, e, "
-["a","b,c,d","e",""]
-
join(", ")
["a","b,c,d","e"]
"a, b,c,d, e"
@@ -612,10 +608,6 @@ walk(if type == "array" then sort else . end)
[[4, 1, 7], [8, 5, 2], [3, 6, 9]]
[[1,4,7],[2,5,8],[3,6,9]]
-walk( if type == "object" then with_entries( .key |= sub( "^_+"; "") ) else . end )
-[ { "_a": { "__b": 2 } } ]
-[{"a":{"b":2}}]
-
$ENV.PAGER
null
"less"
@@ -755,42 +747,6 @@ true
["1", "invalid", "3", 4]
[1, 3, 4]
-test("foo")
-"foo"
-true
-
-.[] | test("a b c # spaces are ignored"; "ix")
-["xabcd", "ABC"]
-true
-true
-
-match("(abc)+"; "g")
-"abc abc"
-{"offset": 0, "length": 3, "string": "abc", "captures": [{"offset": 0, "length": 3, "string": "abc", "name": null}]}
-{"offset": 4, "length": 3, "string": "abc", "captures": [{"offset": 4, "length": 3, "string": "abc", "name": null}]}
-
-match("foo")
-"foo bar foo"
-{"offset": 0, "length": 3, "string": "foo", "captures": []}
-
-match(["foo", "ig"])
-"foo bar FOO"
-{"offset": 0, "length": 3, "string": "foo", "captures": []}
-{"offset": 8, "length": 3, "string": "FOO", "captures": []}
-
-match("foo (?<bar123>bar)? foo"; "ig")
-"foo bar foo foo foo"
-{"offset": 0, "length": 11, "string": "foo bar foo", "captures": [{"offset": 4, "length": 3, "string": "bar", "name": "bar123"}]}
-{"offset": 12, "length": 8, "string": "foo foo", "captures": [{"offset": -1, "length": 0, "string": null, "name": "bar123"}]}
-
-[ match("."; "g")] | length
-"abc"
-3
-
-capture("(?<a>[a-z]+)-(?<n>[0-9]+)")
-"xyzzy-14"
-{ "a": "xyzzy", "n": "14" }
-
.bar as $x | .foo | . + $x
{"foo":10, "bar":200}
210