| # 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 |
| |