Skip to content

Commit

Permalink
Fix sites(; at) interface test
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Feb 3, 2025
1 parent 872ef20 commit 991413f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Interfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function test_pluggable_sites(tn)
end

@testset "`sites(; at::Symbol)` returns the site linked to the index" begin
@testif pred = !isempty(inds(tn)) && !isempty(sites(tn)) sites(tn; at=first(inds(tn))) isa Site
@testif pred = !isempty(inds(tn)) && !isempty(sites(tn)) sites(tn; at=first(inds(tn))) isa Union{Nothing,Site}
end
end

Expand Down

0 comments on commit 991413f

Please sign in to comment.