chore: update golden tests for fold

This commit is contained in:
Jesse-Cameron 2022-09-25 18:10:14 +10:00 committed by Stanisław Barzowski
parent e9a59202cf
commit 02194a7f8c
24 changed files with 16 additions and 0 deletions

1
testdata/foldl_empty.golden vendored Normal file
View File

@ -0,0 +1 @@
null

1
testdata/foldl_empty.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldl(function(i, v) i + v, [], null)

0
testdata/foldl_empty.linter.golden vendored Normal file
View File

1
testdata/foldl_single_element.golden vendored Normal file
View File

@ -0,0 +1 @@
"ab"

1
testdata/foldl_single_element.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldl(function(i, v) i + v, 'b', 'a')

View File

1
testdata/foldl_string.golden vendored Normal file
View File

@ -0,0 +1 @@
"abbccdd"

1
testdata/foldl_string.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldl(function(i, v) i + v + v, 'bcd', 'a')

0
testdata/foldl_string.linter.golden vendored Normal file
View File

1
testdata/foldl_various.golden vendored Normal file
View File

@ -0,0 +1 @@
"a2[1, 2, 3]{\"foo\": \"bar\"}"

1
testdata/foldl_various.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldl(function(i, v) i + std.toString(v), ['a', 2, [1, 2, 3], { foo: 'bar' }], '')

0
testdata/foldl_various.linter.golden vendored Normal file
View File

1
testdata/foldr_empty.golden vendored Normal file
View File

@ -0,0 +1 @@
null

1
testdata/foldr_empty.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldr(function(i, v) i + v, [], null)

0
testdata/foldr_empty.linter.golden vendored Normal file
View File

1
testdata/foldr_single_element.golden vendored Normal file
View File

@ -0,0 +1 @@
"ab"

1
testdata/foldr_single_element.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldr(function(v, i) i + v, 'b', 'a')

View File

1
testdata/foldr_string.golden vendored Normal file
View File

@ -0,0 +1 @@
"addccbb"

1
testdata/foldr_string.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldr(function(v, i) i + v + v, 'bcd', 'a')

0
testdata/foldr_string.linter.golden vendored Normal file
View File

1
testdata/foldr_various.golden vendored Normal file
View File

@ -0,0 +1 @@
"{\"foo\": \"bar\"}[1, 2, 3]2a"

1
testdata/foldr_various.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.foldr(function(v, i) i + std.toString(v), ['a', 2, [1, 2, 3], { foo: 'bar' }], '')

0
testdata/foldr_various.linter.golden vendored Normal file
View File