Skip to content

Commit

Permalink
added unit test for user provided input
Browse files Browse the repository at this point in the history
  • Loading branch information
kapishmalik committed Nov 30, 2024
1 parent 4da2b78 commit fc672d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ func Test_JsonPathMethod_WithBigFloatingNumber(t *testing.T) {
Expect(res).To(Equal("13495985898986869898697879879987978978.12345566777"))
}

func Test_JsonPathMethod_WithBigIntegerNumber(t *testing.T) {
func Test_JsonPathMethod_WithBigIntegerUserProvidedNumber(t *testing.T) {

RegisterTestingT(t)
res := jsonPath("$.registrant", `{"registrant":5553686208582}`)
Expect(res).To(Equal(5553686208582))
res := jsonPath("$.registrant", `{"registrant":"0009007199254740999"}`)
Expect(res).To(Equal("0009007199254740999"))
}

func Test_JsonPathMethod_WithWordContainingEe(t *testing.T) {
Expand Down

0 comments on commit fc672d9

Please sign in to comment.