# generated from the original tests. | |
# Henceforth it may be nicer to group tests into separate files. | |
-- in.cue -- | |
import "encoding/hex" | |
t1: hex.Encode("foo") | |
t2: hex.Decode(hex.Encode("foo")) | |
t3: hex.Decode("foo") | |
t4: hex.Dump('foo') | |
-- out/hex -- | |
Errors: | |
error in call to encoding/hex.Decode: encoding/hex: invalid byte: U+006F 'o' | |
Result: | |
(_|_){ | |
// [eval] | |
t1: (string){ "666f6f" } | |
t2: (bytes){ 'foo' } | |
t3: (_|_){ | |
// [eval] error in call to encoding/hex.Decode: encoding/hex: invalid byte: U+006F 'o' | |
} | |
t4: (string){ "00000000 66 6f 6f |foo|\n" } | |
} |