Skip to content

Commit

Permalink
Add some tests in quadruple precision
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 23, 2024
1 parent 8f7a031 commit 6424b2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include("coverage.jl")
include("multiple_precision.jl")

for problem in problems
for (T, precision) in [(Float32, :single), (Float64, :double)]
for (T, precision) in [(Float32, :single), (Float64, :double), (Float128, :quadruple)]
println("Testing interfaces on problem $problem in $precision precision")
nlp = CUTEstModel(problem, precision = precision)
nlp_man = eval(Symbol(problem))(T)
Expand All @@ -43,7 +43,7 @@ problems = CUTEst.select(max_var = 2, max_con = 2)
problems = randsubseq(problems, 0.1)

for p in problems
for (T, precision) in [(Float32, :single), (Float64, :double)]
for (T, precision) in [(Float32, :single), (Float64, :double), (Float128, :quadruple)]
nlp = CUTEstModel(p, precision = precision)
x0 = nlp.meta.x0
nvar, ncon = nlp.meta.nvar, nlp.meta.ncon
Expand Down Expand Up @@ -75,7 +75,7 @@ finalize(nlp)

@testset "Test decoding separately (issue #239)" begin
problems = ["AKIVA", "ROSENBR", "ZANGWIL2"]
for (T, precision) in [(Float32, :single), (Float64, :double)]
for (T, precision) in [(Float32, :single), (Float64, :double), (Float128, :quadruple)]
# Decoding
for p in problems
nlp = CUTEstModel(p, precision = precision)
Expand Down

0 comments on commit 6424b2a

Please sign in to comment.