We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e6d449 commit 67ad288Copy full SHA for 67ad288
1 file changed
test/forest.jl
@@ -1,3 +1,6 @@
1
+using SparseMatrixColorings: Forest, find_root!, root_union!
2
+using Test
3
+
4
@testset "Constructor Forest" begin
5
forest = Forest{Int}(5)
6
@@ -41,7 +44,7 @@ end
41
44
push!(forest, (1, 2))
42
45
push!(forest, (4, 5))
43
46
push!(forest, (2, 4))
- @test forest.num_trees = 3
47
+ @test forest.num_trees == 3
48
49
root1 = find_root!(forest, (1, 2))
50
root3 = find_root!(forest, (2, 4))
@@ -53,7 +56,7 @@ end
53
56
@test forest.parents[3] == 1
54
57
@test forest.ranks[1] == 1
55
58
@test forest.ranks[3] == 0
- @test forest.num_trees = 2
59
+ @test forest.num_trees == 2
60
61
62
root2 = find_root!(forest, (4, 5))
0 commit comments