Skip to content

Commit

Permalink
fix: Updated test to accept "up" or "down"
Browse files Browse the repository at this point in the history
  • Loading branch information
pesap committed Sep 12, 2024
1 parent 7986bae commit e704697
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_power_system_table_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ end
@testset "Test reserve direction" begin
@test PSY.get_reserve_direction("Up") == ReserveUp
@test PSY.get_reserve_direction("Down") == ReserveDown
@test PSY.get_reserve_direction("up") == ReserveUp
@test PSY.get_reserve_direction("down") == ReserveDown

for invalid in ("up", "down", "right", "left")
for invalid in ("right", "left")
@test_throws PSY.DataFormatError PSY.get_reserve_direction(invalid)
end
end
Expand Down

0 comments on commit e704697

Please sign in to comment.