Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #199 from JuliaLang/ksh/error
Browse files Browse the repository at this point in the history
Error throwing tests
  • Loading branch information
kshyatt committed Sep 22, 2015
2 parents 410d119 + 84ceb0c commit f9452c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cliques.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ add_edge!(g, 1, 2)
@test test_cliques(g, Array[[1,2], [3]])
add_edge!(g, 2, 3)
@test test_cliques(g, Array[[1,2], [2,3]])
g = simple_adjlist(3, is_directed=true)
add_edge!(g, 1, 2)
@test_throws ArgumentError test_cliques(g, Array[[1,2], [3]])

# Test for "pivotdonenbrs not defined" bug
h = simple_inclist(6, is_directed=false)
Expand Down
3 changes: 3 additions & 0 deletions test/floyd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ floyd_warshall!(dists, nexts)
@test nexts == nexts0

@test floyd_warshall(eweights) == dists0
@test_throws ArgumentError floyd_warshall!(rand(3,5))
@test_throws ArgumentError floyd_warshall!(rand(3,5),rand(1:7,5,5))
@test_throws ArgumentError floyd_warshall!(rand(5,5),rand(1:7,3,5))

0 comments on commit f9452c7

Please sign in to comment.