Files
sqlite3/internal/util/pointer_test.go
Nuno Cruces f18561ee11 Lerp.
2024-10-18 13:07:39 +01:00

14 lines
209 B
Go

package util
import (
"math"
"testing"
)
func TestUnwrapPointer(t *testing.T) {
p := Pointer[float64]{Value: math.Pi}
if got := UnwrapPointer(p); got != math.Pi {
t.Errorf("want π, got %v", got)
}
}