Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently apply snake_case #301

Merged
merged 17 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more tests
  • Loading branch information
joachimbrand committed Dec 25, 2024
commit 7e7c236de4aab26ef1da848e4ca0d85c89fdd025
16 changes: 16 additions & 0 deletions test/projector_monte_carlo_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,25 @@ end
@test startswith(sprint(show, sm.state), "ReplicaState")
@test startswith(sprint(show, sm.state[1]), "SingleState")
@test startswith(sprint(show, sm.state.spectral_states), "(SpectralState")
end

@testset "Default DVec" begin
address = BoseFS(2, 3)
H = HubbardReal1D(address; u=20)
sm = init(ProjectorMonteCarloProblem(H; threading=false))
@test only(state_vectors(sm)) isa DVec
@test StochasticStyle(only(state_vectors(sm))) isa IsDynamicSemistochastic

sm = init(ProjectorMonteCarloProblem(H; threading=true))
@test only(state_vectors(sm)) isa PDVec
@test StochasticStyle(only(state_vectors(sm))) isa IsDynamicSemistochastic

sm = init(ProjectorMonteCarloProblem(H; threading=false, initiator=true))
@test only(state_vectors(sm)) isa InitiatorDVec
@test StochasticStyle(only(state_vectors(sm))) isa IsDynamicSemistochastic
end


@testset "random seeds" begin
p = ProjectorMonteCarloProblem(h) # generates random_seed
@test p.random_seed isa UInt64
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ end
include("projector_monte_carlo_problem.jl")
end

# @safetestset "lomc!" begin
# include("lomc.jl")
# end
@suppress_err @safetestset "lomc!" begin
include("lomc.jl")
end

@safetestset "RimuIO" begin
include("RimuIO.jl")
Expand Down
Loading