mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
25 lines
398 B
Go
25 lines
398 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package iterator
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEmpty(t *testing.T) {
|
|
var (
|
|
require = require.New(t)
|
|
empty = Empty[*int]{}
|
|
)
|
|
|
|
require.False(empty.Next())
|
|
|
|
empty.Release()
|
|
|
|
require.False(empty.Next())
|
|
require.Nil(empty.Value())
|
|
}
|