...
1# generated from the original tests.
2# Henceforth it may be nicer to group tests into separate files.
3-- in.cue --
4import "encoding/base64"
5
6t1: base64.Encode(null, "foo")
7t2: base64.Decode(null, base64.Encode(null, "foo"))
8t3: base64.Decode(null, "foo")
9t4: base64.Decode({}, "foo")
10-- out/base64 --
11Errors:
12t3: error in call to encoding/base64.Decode: illegal base64 data at input byte 0:
13 ./in.cue:5:5
14t4: error in call to encoding/base64.Decode: base64: unsupported encoding: cannot use value {} (type struct) as null:
15 ./in.cue:6:5
16
17Result:
18t1: "Zm9v"
19t2: 'foo'
20t3: _|_ // t3: error in call to encoding/base64.Decode: illegal base64 data at input byte 0
21t4: _|_ // t4: error in call to encoding/base64.Decode: base64: unsupported encoding: cannot use value {} (type struct) as null
View as plain text