Skip to content

Commit 6e94292

Browse files
committed
update tests
1 parent 0129cc9 commit 6e94292

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/nid_test.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333

3434
# bad seed
3535
N = nid(F; seed = 0xc770fa47)
36+
degs = degrees(N)
37+
@test degs[2] == [2]
38+
@test degs[1] == [4, 4]
3639

3740
# progress
3841
N = nid(F; show_progress = false)
@@ -57,16 +60,17 @@
5760
N3 = nid(F; monodromy_options = MonodromyOptions(; trace_test_tol = 1e-12))
5861
@test isa(N3, NumericalIrreducibleDecomposition)
5962

60-
N3 = nid(F; max_codim = 1)
61-
@test isa(N3, NumericalIrreducibleDecomposition)
62-
6363
# number of components
6464
@test ncomponents(N3) == 11
6565
@test ncomponents(N3, dims = [1, 2]) == 3
6666
@test ncomponents(N3, 1) == 2
6767
@test n_components(N3) == 11
6868
@test n_components(N3, dims = [1, 2]) == 3
6969
@test n_components(N3, 1) == 2
70+
71+
# max_codim = 1
72+
N4 = nid(F; max_codim = 1)
73+
@test isa(N4, NumericalIrreducibleDecomposition)
7074
end
7175

7276
@testset "Hypersurface of degree 5" begin

0 commit comments

Comments
 (0)