Files
sqlite3/internal/util/pointer_test.go

14 lines
209 B
Go
Raw Permalink Normal View History

2024-10-18 12:57:22 +01:00
package util
2024-01-03 00:54:30 +00:00
import (
"math"
"testing"
)
func TestUnwrapPointer(t *testing.T) {
2024-10-18 12:57:22 +01:00
p := Pointer[float64]{Value: math.Pi}
if got := UnwrapPointer(p); got != math.Pi {
2024-01-03 00:54:30 +00:00
t.Errorf("want π, got %v", got)
}
}