blob: 7c3707f94ce68d5a3c130b1b7ece9fc300b2c11d [file] [log] [blame]
# generated from the original tests.
# Henceforth it may be nicer to group tests into separate files.
-- in.cue --
import "encoding/base64"
t1: base64.Encode(null, "foo")
t2: base64.Decode(null, base64.Encode(null, "foo"))
t3: base64.Decode(null, "foo")
t4: base64.Decode({}, "foo")
-- out/base64 --
Errors:
error in call to encoding/base64.Decode: illegal base64 data at input byte 0:
./in.cue:5:5
error in call to encoding/base64.Decode: base64: unsupported encoding: cannot use value {} (type struct) as null:
./in.cue:6:5
Result:
t1: "Zm9v"
t2: 'foo'
t3: _|_ // error in call to encoding/base64.Decode: illegal base64 data at input byte 0
t4: _|_ // error in call to encoding/base64.Decode: base64: unsupported encoding: cannot use value {} (type struct) as null