remove main_test

This commit is contained in:
agatha 2024-05-12 14:40:14 -04:00
parent 18436e050f
commit 4a006be08f

View File

@ -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)
}
}