mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
16 lines
201 B
Go
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")
|
|
}
|
|
}
|