mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
feat: trie implementation
This commit is contained in:
16
internal/utils/trie/any_test.go
Normal file
16
internal/utils/trie/any_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user