Skip to content

Commit 97dfaa2

Browse files
authored
put tolerance on positivity test (#398)
1 parent 0b6c65b commit 97dfaa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/states/infinitemps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ end
9393
Ss = entropy(ψ)
9494
@test length(Ss) == length(ψ)
9595
@test all(isreal, Ss)
96-
@test all(>=(0), Ss)
96+
@test all(>=(-1.0e-8), Ss)
9797

9898
# entropy(ψ, site) is non-negative and consistent with entropy(ψ)
9999
for site in 1:length(ψ)

0 commit comments

Comments
 (0)