add testdata for urlenc
This commit is contained in:
parent
4d5d9e65ad
commit
25fd96c0fc
2 changed files with 5 additions and 0 deletions
1
lib/urlenc/testdata/TestBasic.exp.txt
vendored
Normal file
1
lib/urlenc/testdata/TestBasic.exp.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
FMvBDcIwDEDRe6b4GYAFeuDOHbEAcmKjFFc4VbEQuyMGeG9OZ7JceOwxaf7qPlmTQ30Im9rw8E0TbwxrUmtd-BSIhesNC-4qhz07fV__nqmCpET5ll8AAAD__w==
|
||||||
|
|
@ -16,6 +16,10 @@ I just forgot my whole philosophy of life!!!: {
|
||||||
encoded, err := Encode(script)
|
encoded, err := Encode(script)
|
||||||
assert.Success(t, err)
|
assert.Success(t, err)
|
||||||
|
|
||||||
|
// Make it explicit in PRs when encoding changes
|
||||||
|
// Something we might want to know for playground compatability
|
||||||
|
assert.Testdata(t, ".txt", []byte(encoded))
|
||||||
|
|
||||||
decoded, err := Decode(encoded)
|
decoded, err := Decode(encoded)
|
||||||
assert.Success(t, err)
|
assert.Success(t, err)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue