@@ -1882,15 +1882,15 @@ end
18821882 R, (x, y, z) = polynomial_ring (QQ, [:x , :y , :z ])
18831883 f = x * y + 2 * x - 3 * z
18841884
1885- @test @inferred collect (exponent_vectors (f)) == [[1 , 1 , 0 ], [1 , 0 , 0 ], [0 , 0 , 1 ]]
1886- @test @inferred collect (exponent_vectors (Vector{UInt}, f)) == [UInt[1 , 1 , 0 ], UInt[1 , 0 , 0 ], UInt[0 , 0 , 1 ]]
1887- @test @inferred collect (coefficients (f)) == [QQ (1 ), QQ (2 ), QQ (- 3 )]
1888- @test @inferred collect (terms (f)) == [x * y, 2 * x, - 3 * z]
1889- @test @inferred collect (monomials (f)) == [x * y, x, z]
1890-
1891- @test @inferred first (exponent_vectors (f, inplace = true )) == [1 , 1 , 0 ]
1892- @test @inferred first (exponent_vectors (Vector{UInt}, f, inplace = true )) == UInt[1 , 1 , 0 ]
1893- @test @inferred first (coefficients (f, inplace = true )) == QQ (1 )
1894- @test @inferred first (monomials (f, inplace = true )) == x * y
1895- @test @inferred first (terms (f, inplace = true )) == x * y
1885+ @test ( @inferred collect (exponent_vectors (f) )) == [[1 , 1 , 0 ], [1 , 0 , 0 ], [0 , 0 , 1 ]]
1886+ @test ( @inferred collect (exponent_vectors (Vector{UInt}, f) )) == [UInt[1 , 1 , 0 ], UInt[1 , 0 , 0 ], UInt[0 , 0 , 1 ]]
1887+ @test ( @inferred collect (coefficients (f) )) == [QQ (1 ), QQ (2 ), QQ (- 3 )]
1888+ @test ( @inferred collect (terms (f) )) == [x * y, 2 * x, - 3 * z]
1889+ @test ( @inferred collect (monomials (f) )) == [x * y, x, z]
1890+
1891+ @test ( @inferred first (exponent_vectors (f, inplace = true ) )) == [1 , 1 , 0 ]
1892+ @test ( @inferred first (exponent_vectors (Vector{UInt}, f, inplace = true ) )) == UInt[1 , 1 , 0 ]
1893+ @test ( @inferred first (coefficients (f, inplace = true ) )) == QQ (1 )
1894+ @test ( @inferred first (monomials (f, inplace = true ) )) == x * y
1895+ @test ( @inferred first (terms (f, inplace = true ) )) == x * y
18961896end
0 commit comments