remove main_test
This commit is contained in:
parent
18436e050f
commit
4a006be08f
20
main_test.go
20
main_test.go
@ -1,20 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"math"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGKI(t *testing.T) {
|
||||
r := Reading{
|
||||
Glucose: 77,
|
||||
Ketone: 1.1,
|
||||
}
|
||||
expected := (77.0 / 18) / 1.1
|
||||
epsilon := 0.0001 // Tolerance level
|
||||
gki, _ := r.GKI()
|
||||
|
||||
if math.Abs(gki-expected) > epsilon {
|
||||
t.Errorf("expected %v, got %v", expected, gki)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user