Skip to content

Commit 67ad288

Browse files
committed
Fix test/forest.jl
1 parent 3e6d449 commit 67ad288

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/forest.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
using SparseMatrixColorings: Forest, find_root!, root_union!
2+
using Test
3+
14
@testset "Constructor Forest" begin
25
forest = Forest{Int}(5)
36

@@ -41,7 +44,7 @@ end
4144
push!(forest, (1, 2))
4245
push!(forest, (4, 5))
4346
push!(forest, (2, 4))
44-
@test forest.num_trees = 3
47+
@test forest.num_trees == 3
4548

4649
root1 = find_root!(forest, (1, 2))
4750
root3 = find_root!(forest, (2, 4))
@@ -53,7 +56,7 @@ end
5356
@test forest.parents[3] == 1
5457
@test forest.ranks[1] == 1
5558
@test forest.ranks[3] == 0
56-
@test forest.num_trees = 2
59+
@test forest.num_trees == 2
5760

5861
root1 = find_root!(forest, (1, 2))
5962
root2 = find_root!(forest, (4, 5))

0 commit comments

Comments
 (0)