Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Nov 19, 2018
1 parent f35dd07 commit 55e2c2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/duphold_tests.nim
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ suite "test duphold":

var m = MedianStats()
check m.median == 0
m.add(10, true)
m.add(10)
check m.median == 10
m.add(1, true)
m.add(5, true)
m.add(1)
m.add(5)
check m.median == 5

for k in 0..100:
m.add(2000, true)
m.add(20000)
check m.median == m.counts.len - 1
for k in 0..100:
m.drop(2000, true)
m.drop(20000)
check m.median == 5

m.clear
Expand Down

0 comments on commit 55e2c2e

Please sign in to comment.