Skip to content

Commit

Permalink
improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kersulis committed Jun 7, 2016
1 parent 74ebafd commit f399ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/bus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ function extract_bus(mpc)
if size(bus, 2) == 13
blanks = ([NaN], [NaN], [NaN], [NaN])
return Bus([bus[:, i] for i in 1:size(bus, 2)]..., blanks...)
elseif size(bus, 2) == 17
return Bus([bus[:, i] for i in 1:size(bus, 2)]...)
else
warn("bus matrix has improper number of columns")
return NaN
return Bus([bus[:, i] for i in 1:size(bus, 2)]...)
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/misc.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Test specific data for one network:
println("- number/case9 check")
mpc = loadcase("case9",describe=false)
mpc = loadcase("case9")
gencost = [2.0 1500.0 0.0 3.0 0.11 5.0 150.0
2.0 2000.0 0.0 3.0 0.085 1.2 600.0
2.0 3000.0 0.0 3.0 0.1225 1.0 335.0]
Expand Down

0 comments on commit f399ba4

Please sign in to comment.