diff options
Diffstat (limited to 'utilities/utilities_test.go')
| -rw-r--r-- | utilities/utilities_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utilities/utilities_test.go b/utilities/utilities_test.go index 107c2d2..3a84d76 100644 --- a/utilities/utilities_test.go +++ b/utilities/utilities_test.go @@ -14,11 +14,24 @@ package utilities import ( + "log" "sync" "testing" "time" ) +func TestIota(t *testing.T) { + r := Iota(6, 15) + + l := 6 + for _, vr := range r { + if vr != l { + log.Fatalf("Iota failed: expected %d, got %d\n", l, vr) + } + l++ + } +} + func TestReadAfterCloseOnBufferedChannel(t *testing.T) { communication := make(chan int, 100) |
