mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 22:19:14 +00:00
14 lines
209 B
Go
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)
|
|
}
|
|
}
|