GoDoxy/internal/utils/trie/any_test.go
2025-04-24 15:45:34 +08:00

16 lines
201 B
Go

package trie
import (
"testing"
)
func TestStoreNil(t *testing.T) {
var v AnyValue
v.Store(nil)
if v.Load() != nil {
t.Fatal("expected nil")
}
if !v.IsNil() {
t.Fatal("expected true")
}
}