You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
package net.pokeranalytics.android
|
|
|
|
import org.junit.Assert
|
|
import org.junit.Test
|
|
|
|
/**
|
|
* Example local unit test, which will execute on the development machine (host).
|
|
*
|
|
* See [testing documentation](http://d.android.com/tools/testing).
|
|
*/
|
|
|
|
class ExampleUnitTest : RealmUnitTest() {
|
|
|
|
@Test
|
|
fun testStats() {
|
|
Assert.assertEquals(0, 0)
|
|
}
|
|
|
|
|
|
// class Grade(someValue: Double) : SessionInterface {
|
|
//
|
|
// override var bbPer100Hands: Double = 0.0
|
|
// override var ratedNet: Double = 0.0
|
|
// override var value: Double = someValue
|
|
//
|
|
// override var sessionSet: SessionSet? = SessionSet()
|
|
// override var estimatedHands: Double = 0.0
|
|
// override var bbNet: Double = 0.0
|
|
// override var bigBlindSessionCount: Int = 0 // 0 or 1
|
|
// override var ratedBuyin: Double = 0.0
|
|
//
|
|
// }
|
|
//
|
|
// @Test
|
|
// fun testStats() {
|
|
//
|
|
// val grades: List<Grade> = listOf(Grade(10.0), Grade(20.0))
|
|
// val group = ComputableGroup(name = "test", computables = grades)
|
|
//
|
|
// val results: ComputedResults = Calculator.compute(group, Calculator.Options())
|
|
//
|
|
// val sum = results.computedStat(Stat.NETRESULT)
|
|
// if (sum != null) {
|
|
// assert(sum.value == 0.0) { "sum is ${sum.value}" }
|
|
// } else {
|
|
// fail("No Net result stat")
|
|
// }
|
|
//
|
|
// val average = results.computedStat(Stat.AVERAGE)
|
|
// if (average != null) {
|
|
// assert(average.value == 0.0) { "average is ${average.value}" }
|
|
// } else {
|
|
// fail("No AVERAGE stat")
|
|
// }
|
|
//
|
|
// }
|
|
|
|
|
|
}
|
|
|