From 82fca76bdd4183593702d80c5c41520e8b9d9ad0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Feb 2024 13:45:29 +0200 Subject: Tweak $json.*() function names and semantics --- tests/function/json/testscript | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'tests') diff --git a/tests/function/json/testscript b/tests/function/json/testscript index fdfc9ab..9f8c2e9 100644 --- a/tests/function/json/testscript +++ b/tests/function/json/testscript @@ -58,13 +58,13 @@ EOO : size : $* <>EOO -print $size([json] null) -print $size([json] true) -print $size([json] 123) -print $size([json] abc) +print $value_size([json] null) +print $value_size([json] true) +print $value_size([json] 123) +print $value_size([json] abc) print $size([string] ([json] abc)) # @@ Should be 3 (quoted, type hint). -print $size([json] 1 2 3) -print $size([json] one@1 two@2 three@3) +print $value_size([json] 1 2 3) +print $value_size([json] one@1 two@2 three@3) EOI 0 1 @@ -79,19 +79,19 @@ EOO : $* <>EOO j = [json] 1 ([json] one@1 two@2) 2 true 3 null 4 abc -5 null ([json] 1 2 3) -print $find_index($j, null) -print $find_index($j, true) -print $find_index($j, 3) -print $find_index($j, 0x4) -print $find_index($j, -5) -print $find_index($j, abc) -print $find_index($j, [json] 1 2 3) -print $find_index($j, [json] two@2 one@1) -print $find_index($j, [json] 1 2) -print $find_index($j, [json] one@1) -print $find_index($j, [json] one@1 two@2 three@3) -print $find_index($j, [json] one@1 TWO@3) -print $find_index($j, [json] one@1 two@3) +print $array_find_index($j, null) +print $array_find_index($j, true) +print $array_find_index($j, 3) +print $array_find_index($j, 0x4) +print $array_find_index($j, -5) +print $array_find_index($j, abc) +print $array_find_index($j, [json] 1 2 3) +print $array_find_index($j, [json] two@2 one@1) +print $array_find_index($j, [json] 1 2) +print $array_find_index($j, [json] one@1) +print $array_find_index($j, [json] one@1 two@2 three@3) +print $array_find_index($j, [json] one@1 TWO@3) +print $array_find_index($j, [json] one@1 two@3) EOI 5 3 -- cgit v1.1