Skip to content

Commit

Permalink
Squashing a couple of bugs in gain/lose table.
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Sep 16, 2023
1 parent 1bd70ae commit 8bc63f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/stboutput_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ using Test
@test ogl."Average Change(£s)" [5.2,4.0]
@test sum( ogl."No Change") == 0
@test sum( ogl."Gain £1.01-£10" ) == sum(d.weight)

d.change = [-20,-10,0,9,88]
ogl = STBOutput.one_gain_lose( d, :i )
@test sum( ogl."No Change") == 200
@test sum( ogl."Lose £10.01+") == 200
@test sum( ogl."Gain £10.01+") == 100

end

0 comments on commit 8bc63f5

Please sign in to comment.