Skip to content

Commit

Permalink
Bump submodule to use latest select creds vectors (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
diehuxx authored May 7, 2024
1 parent 0984e85 commit 0cee3cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions pexv2/pexv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,3 @@ func TestSelectCredentials(t *testing.T) {
})
}
}

func TestSelectCredentials_MoreVectors(t *testing.T) {
testVectors, err := web5.LoadTestVectors[PresentationInput, PresentationOutput]("../web5-spec/test-vectors/presentation_exchange/select_credentials_go.json")
assert.NoError(t, err)

for _, vector := range testVectors.Vectors {
t.Run(vector.Description, func(t *testing.T) {
fmt.Println("Running test vector: ", vector.Description)

vcJwts, err := pexv2.SelectCredentials(vector.Input.CredentialJwts, vector.Input.PresentationDefinition)

assert.NoError(t, err)
testify.ElementsMatch(t, vector.Output.SelectedCredentials, vcJwts)
})
}
}

0 comments on commit 0cee3cb

Please sign in to comment.