Skip to content

Commit a0553a8

Browse files
fixes
1 parent 26dac6d commit a0553a8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

GNNGraphs/test/datastore.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ end
3838
@test ds2.x == ds.x .+ 1
3939
@test ds2.y == ds.y .+ 1
4040

41-
@test_throws AssertionError ds2=map(x -> [x; x], ds)
41+
@test_throws AssertionError ds2 == map(x -> [x; x], ds)
4242
end
4343

4444
@testitem "getdata / getn" begin

GNNGraphs/test/utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,16 @@
9494
end
9595

9696
@testitem "color_refinement" setup=[GraphsTestModule] begin
97+
# TODO: this passes only on julia 1.10. Use a deterministic graph generator
9798
using .GraphsTestModule
9899
for GRAPH_T in GRAPH_TYPES
99100
rng = MersenneTwister(17)
100101
g = rand_graph(rng, 10, 20, graph_type = GRAPH_T)
101102
x0 = ones(Int, 10)
102103
x, ncolors, niters = color_refinement(g, x0)
103-
@test ncolors == 8
104+
@test ncolors == 7
104105
@test niters == 2
105-
@test x == [6, 7, 8, 9, 10, 11, 9, 11, 12, 13]
106+
@test x == [1, 1, 6, 6, 6, 7, 8, 9, 10, 11]
106107

107108
x2, _, _ = color_refinement(g)
108109
@test x2 == x

0 commit comments

Comments
 (0)