Skip to content

Commit

Permalink
Change test sbm; add test for Julia 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BSAraujo committed Mar 23, 2020
1 parent f1284f9 commit eb35ca7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ environment:
- julia_version: 1.0
- julia_version: 1.1
- julia_version: 1.2
- julia_version: 1.3
- julia_version: nightly
platform:
- x86
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ julia:
- 1.0
- 1.1
- 1.2
- 1.3
- nightly
matrix:
allow_failures:
Expand Down
18 changes: 9 additions & 9 deletions test/test_sbm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ end

@testset "Generate graphs" begin

expected_A = [0 1 2 1 0 0 0 0
expected_A =[0 1 2 1 0 0 0 0
1 0 1 1 0 0 0 0
2 1 0 1 0 0 0 0
1 1 1 2 0 0 0 0
0 0 0 0 0 1 2 1
0 0 0 0 1 0 1 1
0 0 0 0 2 1 0 2
0 0 0 0 1 1 2 0]
0 0 0 0 2 0 2 3
0 0 0 0 0 0 0 1
0 0 0 0 2 0 0 1
0 0 0 0 3 1 1 0]
dataset = StochasticBlockModel.generate([1.0 0.0; 0.0 1.0], [4; 4], seed=2)
@test dataset.A == expected_A
@test dataset.n_communities == 2

expected_A = [0 1 2 0 0 0
1 0 1 0 0 0
2 1 0 0 0 0
0 0 0 0 1 1
0 0 0 1 0 0
0 0 0 1 0 2]
0 0 0 2 2 2
0 0 0 2 2 0
0 0 0 2 0 0]
dataset = StochasticBlockModel.generate([1.0 0.0; 0.0 1.0], [3; 3], seed=2)
@test dataset.A == expected_A
@test dataset.n_communities == 2
Expand Down

0 comments on commit eb35ca7

Please sign in to comment.