Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
test(externals): tweaks + ident read check
Browse files Browse the repository at this point in the history
  • Loading branch information
tecosaur committed Nov 27, 2023
1 parent cb773e0 commit 61255f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ end
end
@test_throws EmptyStackError dataset("dataset")
@test_throws EmptyStackError getlayer(nothing)
push!(STACK, collection)
@test (collection = loadcollection!(IOBuffer(datatoml))) isa Any # if this actually goes wrong, it should be caught by subsequent tests
@test getlayer(nothing) === collection
@test_throws UnresolveableIdentifier getlayer("nope")
@test_throws UnresolveableIdentifier getlayer(Base.UUID("11111111-24db-4e28-b693-58d2e1f59d05"))
Expand All @@ -549,6 +549,8 @@ end
@test open(dataset("dataset"), Vector{Int}) == [1, 2, 3]
@test read(dataset("dataset"), Vector{Int}) == [1, 2, 3]
@test read(dataset("dataset")) == [1, 2, 3]
@test read(parse(Identifier, "dataset"), Vector{Int}) == [1, 2, 3]
@test read(parse(Identifier, "dataset::Vector{Int}")) == [1, 2, 3]
end
@testset "Identifier" begin
@test_throws UnresolveableIdentifier dataset("nonexistent")
Expand Down

0 comments on commit 61255f2

Please sign in to comment.