Skip to content

Commit bdc6180

Browse files
committed
format
1 parent 26b90ff commit bdc6180

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

src/result.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,3 @@ function singular_multiplicities_table(io, result::Result, stats = statistics(re
689689
border_crayon = PrettyTables.Crayon(faint = true),
690690
)
691691
end
692-
693-
694-

src/solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function solve(
497497
flatten = flatten,
498498
)
499499
else
500-
if iterator_only
500+
if iterator_only
501501
ResultIterator(starts, solver, nothing)
502502
else
503503
solve(
@@ -522,7 +522,7 @@ function solve(
522522
threading::Bool = Threads.nthreads() > 1,
523523
kwargs...,
524524
)
525-
if iterator_only
525+
if iterator_only
526526
return ResultIterator(starts, S, nothing)
527527
else
528528
return solve(S, collect(starts); threading = threading, kwargs...)

test/result_iterator.jl

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,37 @@
55
f₁ = y-x^2
66
f₂ = y-x^3
77
F = [f₁, f₂]
8-
tsi_polyhedral = solve(F; iterator_only=true, start_system = :polyhedral)
9-
tsi_total_degree = solve(F; iterator_only=true, start_system = :total_degree)
8+
tsi_polyhedral = solve(F; iterator_only = true, start_system = :polyhedral)
9+
tsi_total_degree = solve(F; iterator_only = true, start_system = :total_degree)
1010

1111
@test isa(tsi_polyhedral, ResultIterator)
1212
@test isa(tsi_total_degree, ResultIterator)
1313

14-
@test nsolutions(tsi_polyhedral; only_nonsingular=false, multiple_results=true) == 3
15-
@test nsolutions(tsi_total_degree; multiple_results=true) == 1
14+
@test nsolutions(
15+
tsi_polyhedral;
16+
only_nonsingular = false,
17+
multiple_results = true,
18+
) == 3
19+
@test nsolutions(tsi_total_degree; multiple_results = true) == 1
1620
@test length(tsi_polyhedral) == 3
1721
@test length(tsi_total_degree) == 6
18-
@test sum(bitmask(isfinite,tsi_total_degree)) == 3
19-
22+
@test sum(bitmask(isfinite, tsi_total_degree)) == 3
23+
2024
end
2125

2226
@testset "Parameters" begin
2327
@var x y p
2428
f₁ = y - x^2 + p
25-
f₂ = y - x^3 - p
26-
F = System([f₁, f₂]; variables =[x; y], parameters = [p])
27-
R = solve(F; iterator_only=true, target_parameters = [0])
28-
29+
f₂ = y - x^3 - p
30+
F = System([f₁, f₂]; variables = [x; y], parameters = [p])
31+
R = solve(F; iterator_only = true, target_parameters = [0])
32+
2933
@test isa(R, ResultIterator)
30-
@test nsolutions(R; only_nonsingular=false, multiple_results=true) == 3
31-
@test nsolutions(R; multiple_results=true) == 1
34+
@test nsolutions(R; only_nonsingular = false, multiple_results = true) == 3
35+
@test nsolutions(R; multiple_results = true) == 1
3236
@test length(R) == 3
3337
@test sum(bitmask(isfinite, R)) == 3
3438
end
3539

3640

37-
end
41+
end

0 commit comments

Comments
 (0)