anyreader/reader_test.go

14 lines
204 B
Go
Raw Normal View History

2023-06-30 20:43:23 +02:00
package anyreader
import (
"fmt"
"testing"
)
func TestReader(t *testing.T) {
r := NewReaderFromSlice([]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
fmt.Println(r.Read())
r.Unread()
fmt.Println(r.Read())
}