Expect this to succeed:
t.Run("ok - parse a DID URL", func(t *testing.T) {
id, err := ParseDID("did:nuts:123/path#fragment")
assert.NoError(t, err)
assert.Equal(t, "did:nuts:123/path#fragment", id.String())
})
Get this instead:
=== RUN TestParseDIDURL/ok_-_parse_a_DID_URL
did_test.go:86:
Error Trace: did_test.go:86
Error: Received unexpected error:
character is not allowed in path
Test: TestParseDIDURL/ok_-_parse_a_DID_URL
It seems that this fails when there is a path present, but no query between path and the fragment.
Expect this to succeed:
Get this instead:
It seems that this fails when there is a path present, but no query between path and the fragment.