Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
racinmat committed Jul 31, 2020
1 parent b33f39d commit e0766ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/extractors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -489,5 +489,10 @@ end
j5 = JSON.parse("""{"e": 4.5}""")
j6 = JSON.parse("""{"f": 5}""")
sch = JsonGrinder.schema([j1, j2, j3, j4, j5, j6])
JsonGrinder.key_as_field(sch)
e = JsonGrinder.key_as_field(sch, NamedTuple(), path = "")
@test e isa JsonGrinder.ExtractKeyAsField

e2 = JsonGrinder.key_as_field(sch, NamedTuple(), path = "")
@test hash(e) === hash(e2)
@test e == e2
end

2 comments on commit e0766ca

@racinmat
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/18760

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.6.0 -m "<description of version>" e0766ca4e1e87c07424f3d46ab41005349ec69d7
git push origin v1.6.0

Please sign in to comment.