Skip to content

Commit c5f360b

Browse files
authored
Fixes suggested by VSCode (#226)
1 parent 4f63dd2 commit c5f360b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/comparison.jl

+7-7
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@
8383
Mod.@polyvar x
8484
# Polynomial of multiple terms
8585
p = x + x^2
86-
@test nothing != p
87-
@test p != nothing
86+
@test nothing !== p
87+
@test p !== nothing
8888
@test Dict{Int,Int}() != p
89-
@test p != Dict{Int,Int}()
89+
@test p !== Dict{Int,Int}()
9090
# Polynomial of one term
9191
p = x + x^2 - x
92-
@test p != nothing
93-
@test p != Dict{Int,Int}()
92+
@test p !== nothing
93+
@test p !== Dict{Int,Int}()
9494
# Polynomial of no term
9595
# See https://github.com/blegat/MultivariatePolynomials.jl/issues/22
9696
p = x - x
97-
@test p != nothing
98-
@test p != Dict{Int,Int}()
97+
@test p !== nothing
98+
@test p !== Dict{Int,Int}()
9999
end
100100
end

test/rational.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#@test iszero(zero(RationalPoly{true, Float64, Int}))
1919
#@test typeof(x / 2) == Term{true, Float64}
2020
#@test typeof((x + x^2) / 3.0) == Polynomial{true, Float64}
21-
@test nothing != x / (x^2 + 1)
21+
@test nothing !== x / (x^2 + 1)
2222
@test (x^2 + 1) / (2x) != nothing
2323
@test Dict{Int,Int}() != x / (x^2 + 1)
2424
@test (x^2 + 1) / (2x) != Dict{Int,Int}()

0 commit comments

Comments
 (0)