blob: 5302a90a45bbe8abade7348777ff7166b5012933 [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: base64: unsupported encoding: cannot use value {} (type struct) as null
error in call to encoding/base64.Decode: illegal base64 data at input byte 0
Result:
t1: "Zm9v"
t2: 'foo'
t3: _|_ // error in call to encoding/base64.Decode: illegal base64 data at input byte 0 (and 1 more errors)
t4: _|_ // error in call to encoding/base64.Decode: base64: unsupported encoding: cannot use value {} (type struct) as null (and 1 more errors)