Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bytestring in json as Base64Url #315

Merged
merged 5 commits into from
Apr 27, 2023

Conversation

Saizan
Copy link
Collaborator

@Saizan Saizan commented Apr 27, 2023

Implementing changes requested on PR #254

Comment on lines +21 to +27
testGroup "CBOR-JSON"
[ testGroup "unit tests"
[ testCase "decode variable ByteString as Base62Url String" $
Right ("", String "MDEy") @=? deserialiseFromBytes (decodeValue True)
(fromStrict . either error id $ HEX.decode "5803303132")
]
]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we would test against Reference.termToJson.

@Saizan Saizan merged commit ec399a1 into master Apr 27, 2023
16 checks passed
@Saizan Saizan deleted the yaitskov-support-bytestring-in-json-as-hex branch April 27, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant