@@ -7,7 +7,31 @@ import MultivariateMoments as MM
77
88b (x) = MB. MonomialBasis (x)
99
10- function test_univariate_infinity (x)
10+ include (" utils.jl" )
11+
12+ function test_dreesen1 (x, y)
13+ matrix = Float64[
14+ 1 0 0 0
15+ 0 1 0 0
16+ 0 0 1 0
17+ 0 0 0 1
18+ 0 0 1 0
19+ 1 0 0 0
20+ ]
21+ basis = MB. MonomialBasis ([1 , y, x, y^ 2 , x * y, x^ 2 ])
22+ null = MM. MacaulayNullspace (matrix, basis, 1e-8 )
23+ @testset " $D " for D in [MM. AnyDependence, MM. StaircaseDependence]
24+ @testset " $name " for (solver, name) in [
25+ (MM. ShiftNullspace {D} (), " shift" ),
26+ # (MM.Echelon{D}(fallback = false), "echelon no fallback"),
27+ # (MM.Echelon{D}(fallback = true), "echelon fallback"),
28+ ]
29+ @test isnothing (MM. solve (null, solver))
30+ end
31+ end
32+ end
33+
34+ function _test_univariate_infinity (x, y)
1135 Z = Float64[
1236 1 0
1337 2 0
@@ -51,12 +75,12 @@ using Test
5175
5276import DynamicPolynomials
5377@testset " DynamicPolynomials" begin
54- DynamicPolynomials. @polyvar x
55- TestNull. runtests (x)
78+ DynamicPolynomials. @polyvar x y
79+ TestNull. runtests (x, y )
5680end
5781
5882import TypedPolynomials
5983@testset " TypedPolynomials" begin
60- TypedPolynomials. @polyvar x
61- TestNull. runtests (x)
84+ TypedPolynomials. @polyvar x y
85+ TestNull. runtests (x, y )
6286end
0 commit comments