mirror of
https://github.com/google/go-jsonnet.git
synced 2025-10-01 18:31:04 +02:00
Update cpp-jsonnet.
This commit is contained in:
parent
a7af40a87e
commit
425405da78
58561
astgen/stdast.go
58561
astgen/stdast.go
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
Subproject commit 552d8ec6f6b973a6357b83eb9bacd707366d28f0
|
||||
Subproject commit 7d624c1cb2ef095c1585bd25a8be883fb16f9e73
|
2
testdata/assert_equal4.golden
vendored
2
testdata/assert_equal4.golden
vendored
@ -1,6 +1,6 @@
|
||||
RUNTIME ERROR: Assertion failed. {"x": 1} != {"x": 2}
|
||||
-------------------------------------------------
|
||||
<std>:787:7-50 function <anonymous>
|
||||
<std>:792:7-50 function <anonymous>
|
||||
|
||||
error 'Assertion failed. ' + a + ' != ' + b,
|
||||
|
||||
|
2
testdata/assert_equal5.golden
vendored
2
testdata/assert_equal5.golden
vendored
@ -2,7 +2,7 @@ RUNTIME ERROR: Assertion failed.
|
||||
!=
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:787:7-50 function <anonymous>
|
||||
<std>:792:7-50 function <anonymous>
|
||||
|
||||
error 'Assertion failed. ' + a + ' != ' + b,
|
||||
|
||||
|
2
testdata/assert_equal6.golden
vendored
2
testdata/assert_equal6.golden
vendored
@ -1,6 +1,6 @@
|
||||
RUNTIME ERROR: Assertion failed. [31m !=
|
||||
-------------------------------------------------
|
||||
<std>:787:7-50 function <anonymous>
|
||||
<std>:792:7-50 function <anonymous>
|
||||
|
||||
error 'Assertion failed. ' + a + ' != ' + b,
|
||||
|
||||
|
2
testdata/percent_bad.golden
vendored
2
testdata/percent_bad.golden
vendored
@ -1,6 +1,6 @@
|
||||
RUNTIME ERROR: Operator % cannot be used on types number and string.
|
||||
-------------------------------------------------
|
||||
<std>:229:7-94 function <anonymous>
|
||||
<std>:239:7-94 function <anonymous>
|
||||
|
||||
error 'Operator % cannot be used on types ' + std.type(a) + ' and ' + std.type(b) + '.',
|
||||
|
||||
|
8
testdata/percent_bad2.golden
vendored
8
testdata/percent_bad2.golden
vendored
@ -1,21 +1,21 @@
|
||||
RUNTIME ERROR: Too many values to format: 1, expected 0
|
||||
-------------------------------------------------
|
||||
<std>:657:11-86 function <format_codes_arr>
|
||||
<std>:662:11-86 function <format_codes_arr>
|
||||
|
||||
error ('Too many values to format: ' + std.length(arr) + ', expected ' + j)
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:663:11-59 function <format_codes_arr>
|
||||
<std>:668:11-59 function <format_codes_arr>
|
||||
|
||||
format_codes_arr(codes, arr, i + 1, j, v + code) tailstrict
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:754:7-48 function <anonymous>
|
||||
<std>:759:7-48 function <anonymous>
|
||||
|
||||
format_codes_arr(codes, [vals], 0, 0, ''),
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:227:7-23 function <anonymous>
|
||||
<std>:237:7-23 function <anonymous>
|
||||
|
||||
std.format(a, b)
|
||||
|
||||
|
2
testdata/percent_bad3.golden
vendored
2
testdata/percent_bad3.golden
vendored
@ -1,6 +1,6 @@
|
||||
RUNTIME ERROR: Operator % cannot be used on types function and number.
|
||||
-------------------------------------------------
|
||||
<std>:229:7-94 function <anonymous>
|
||||
<std>:239:7-94 function <anonymous>
|
||||
|
||||
error 'Operator % cannot be used on types ' + std.type(a) + ' and ' + std.type(b) + '.',
|
||||
|
||||
|
8
testdata/percent_format_str4.golden
vendored
8
testdata/percent_format_str4.golden
vendored
@ -1,21 +1,21 @@
|
||||
RUNTIME ERROR: Too many values to format: 2, expected 1
|
||||
-------------------------------------------------
|
||||
<std>:657:11-86 function <format_codes_arr>
|
||||
<std>:662:11-86 function <format_codes_arr>
|
||||
|
||||
error ('Too many values to format: ' + std.length(arr) + ', expected ' + j)
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:663:11-59 function <format_codes_arr>
|
||||
<std>:668:11-59 function <format_codes_arr>
|
||||
|
||||
format_codes_arr(codes, arr, i + 1, j, v + code) tailstrict
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:750:7-46 function <anonymous>
|
||||
<std>:755:7-46 function <anonymous>
|
||||
|
||||
format_codes_arr(codes, vals, 0, 0, '')
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:227:7-23 function <anonymous>
|
||||
<std>:237:7-23 function <anonymous>
|
||||
|
||||
std.format(a, b)
|
||||
|
||||
|
18
testdata/percent_format_str5.golden
vendored
18
testdata/percent_format_str5.golden
vendored
@ -1,38 +1,38 @@
|
||||
RUNTIME ERROR: Not enough values to format: 1, expected at least 1
|
||||
RUNTIME ERROR: Not enough values to format: 1, expected more than 1
|
||||
-------------------------------------------------
|
||||
<std>:690:15-102 thunk <val> from <function <format_codes_arr>>
|
||||
<std>:695:15-103 thunk <val> from <function <format_codes_arr>>
|
||||
|
||||
error ('Not enough values to format: ' + std.length(arr) + ', expected at least ' + j2);
|
||||
error ('Not enough values to format: ' + std.length(arr) + ', expected more than ' + j2);
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:695:27-30 thunk from <thunk <s> from <function <format_codes_arr>>>
|
||||
<std>:700:27-30 thunk from <thunk <s> from <function <format_codes_arr>>>
|
||||
|
||||
format_code(val, code, tmp.fw, tmp2.prec, j2);
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:565:22-25 thunk from <function <format_code>>
|
||||
<std>:570:22-25 thunk from <function <format_code>>
|
||||
|
||||
std.toString(val)
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:565:9-26 function <format_code>
|
||||
<std>:570:9-26 function <format_code>
|
||||
|
||||
std.toString(val)
|
||||
|
||||
-------------------------------------------------
|
||||
... (skipped 10 frames)
|
||||
-------------------------------------------------
|
||||
<std>:706:11-64 function <format_codes_arr>
|
||||
<std>:711:11-64 function <format_codes_arr>
|
||||
|
||||
format_codes_arr(codes, arr, i + 1, j3, v + s_padded) tailstrict;
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:750:7-46 function <anonymous>
|
||||
<std>:755:7-46 function <anonymous>
|
||||
|
||||
format_codes_arr(codes, vals, 0, 0, '')
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:227:7-23 function <anonymous>
|
||||
<std>:237:7-23 function <anonymous>
|
||||
|
||||
std.format(a, b)
|
||||
|
||||
|
18
testdata/percent_format_str6.golden
vendored
18
testdata/percent_format_str6.golden
vendored
@ -1,38 +1,38 @@
|
||||
RUNTIME ERROR: Not enough values to format: 1, expected at least 1
|
||||
RUNTIME ERROR: Not enough values to format: 1, expected more than 1
|
||||
-------------------------------------------------
|
||||
<std>:690:15-102 thunk <val> from <function <format_codes_arr>>
|
||||
<std>:695:15-103 thunk <val> from <function <format_codes_arr>>
|
||||
|
||||
error ('Not enough values to format: ' + std.length(arr) + ', expected at least ' + j2);
|
||||
error ('Not enough values to format: ' + std.length(arr) + ', expected more than ' + j2);
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:695:27-30 thunk from <thunk <s> from <function <format_codes_arr>>>
|
||||
<std>:700:27-30 thunk from <thunk <s> from <function <format_codes_arr>>>
|
||||
|
||||
format_code(val, code, tmp.fw, tmp2.prec, j2);
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:565:22-25 thunk from <function <format_code>>
|
||||
<std>:570:22-25 thunk from <function <format_code>>
|
||||
|
||||
std.toString(val)
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:565:9-26 function <format_code>
|
||||
<std>:570:9-26 function <format_code>
|
||||
|
||||
std.toString(val)
|
||||
|
||||
-------------------------------------------------
|
||||
... (skipped 10 frames)
|
||||
-------------------------------------------------
|
||||
<std>:706:11-64 function <format_codes_arr>
|
||||
<std>:711:11-64 function <format_codes_arr>
|
||||
|
||||
format_codes_arr(codes, arr, i + 1, j3, v + s_padded) tailstrict;
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:754:7-48 function <anonymous>
|
||||
<std>:759:7-48 function <anonymous>
|
||||
|
||||
format_codes_arr(codes, [vals], 0, 0, ''),
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:227:7-23 function <anonymous>
|
||||
<std>:237:7-23 function <anonymous>
|
||||
|
||||
std.format(a, b)
|
||||
|
||||
|
14
testdata/percent_format_str7.golden
vendored
14
testdata/percent_format_str7.golden
vendored
@ -1,39 +1,39 @@
|
||||
RUNTIME ERROR: Format required number at 0, got string
|
||||
-------------------------------------------------
|
||||
<std>:(568:11)-(569:47) function <format_code>
|
||||
<std>:(573:11)-(574:47) function <format_code>
|
||||
|
||||
error 'Format required number at '
|
||||
+ i + ', got ' + std.type(val)
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:695:15-60 thunk <s> from <function <format_codes_arr>>
|
||||
<std>:700:15-60 thunk <s> from <function <format_codes_arr>>
|
||||
|
||||
format_code(val, code, tmp.fw, tmp2.prec, j2);
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:700:24-25 thunk from <thunk <s_padded> from <function <format_codes_arr>>>
|
||||
<std>:705:24-25 thunk from <thunk <s_padded> from <function <format_codes_arr>>>
|
||||
|
||||
pad_left(s, tmp.fw, ' ');
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:475:30-33 thunk from <thunk from <function <pad_left>>>
|
||||
<std>:480:30-33 thunk from <thunk from <function <pad_left>>>
|
||||
|
||||
padding(w - std.length(str), s) + str;
|
||||
|
||||
-------------------------------------------------
|
||||
... (skipped 7 frames)
|
||||
-------------------------------------------------
|
||||
<std>:706:11-64 function <format_codes_arr>
|
||||
<std>:711:11-64 function <format_codes_arr>
|
||||
|
||||
format_codes_arr(codes, arr, i + 1, j3, v + s_padded) tailstrict;
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:750:7-46 function <anonymous>
|
||||
<std>:755:7-46 function <anonymous>
|
||||
|
||||
format_codes_arr(codes, vals, 0, 0, '')
|
||||
|
||||
-------------------------------------------------
|
||||
<std>:227:7-23 function <anonymous>
|
||||
<std>:237:7-23 function <anonymous>
|
||||
|
||||
std.format(a, b)
|
||||
|
||||
|
2
testdata/percent_mod_int5.golden
vendored
2
testdata/percent_mod_int5.golden
vendored
@ -1,6 +1,6 @@
|
||||
RUNTIME ERROR: Division by zero.
|
||||
-------------------------------------------------
|
||||
<std>:225:7-23 builtin function <modulo>
|
||||
<std>:235:7-23 builtin function <modulo>
|
||||
|
||||
std.modulo(a, b)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user