Skip to content

Commit

Permalink
add a trivial test-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Jul 30, 2018
1 parent 802cb4e commit 3a289e7
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions stats/shared/src/test/scala/org/hammerlab/stats/StatsTest.scala
Expand Up @@ -11,29 +11,9 @@ class StatsTest

def check[K : Numeric : Ordering](input: Seq[K],
expected: Stats[K, Int]): Unit =
==(Stats(input), expected)

def check[K : Numeric : Ordering](input: Seq[K],
numToSample: Int,
expected: Stats[K, Int]): Unit =
==(
Stats(
input,
numToSample
),
expected
)

def check[K : Numeric : Ordering](input: Seq[K],
numToSample: Int,
onlySampleSorted: Boolean,
expected: Stats[K, Int]): Unit =
==(
Stats(
input,
numToSample,
onlySampleSorted
),
// use exported alias for some more test coverage
hammerlab.stats.Stats(input),
expected
)

Expand Down

0 comments on commit 3a289e7

Please sign in to comment.