add testdata for urlenc

This commit is contained in:
Alexander Wang 2023-06-01 00:07:57 -07:00
parent 4d5d9e65ad
commit 25fd96c0fc
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE
2 changed files with 5 additions and 0 deletions

1
lib/urlenc/testdata/TestBasic.exp.txt vendored Normal file
View file

@ -0,0 +1 @@
FMvBDcIwDEDRe6b4GYAFeuDOHbEAcmKjFFc4VbEQuyMGeG9OZ7JceOwxaf7qPlmTQ30Im9rw8E0TbwxrUmtd-BSIhesNC-4qhz07fV__nqmCpET5ll8AAAD__w==

View file

@ -16,6 +16,10 @@ I just forgot my whole philosophy of life!!!: {
encoded, err := Encode(script)
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)
assert.Success(t, err)