Skip to content

Commit

Permalink
TST: Avoid transpose to ensure ArgumentError in v0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Aug 9, 2018
1 parent 9835700 commit 89e96d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_normal_form_game.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@

@testset "NormalFormGame invalid nonsquare matrix" begin
@test_throws ArgumentError g = NormalFormGame(zeros((2, 3)))
@test_throws ArgumentError g = NormalFormGame(transpose([0 1 1]))

A = [0, 1, 1]
A = reshape(A, (size(A)..., 1))
@test_throws ArgumentError g = NormalFormGame(A)
end

@testset "NormalFormGame invalid payoff profiles" begin
Expand Down

0 comments on commit 89e96d8

Please sign in to comment.