Skip to content

Commit

Permalink
test: add more tests to ensure getImpureIterable works as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
biggyspender committed Feb 25, 2021
1 parent 594dd7e commit 8d424d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ts-iterable-functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import {
_sequenceEqual,
_reduce,
toIterable,
_first,
} from '../src/ts-iterable-functions'
import { Date } from './Date'
import { deepEqualityComparer } from 'ts-equality-comparer'
Expand Down Expand Up @@ -1218,6 +1219,8 @@ describe('blinq test', () => {
const iterable = getImpureIterable()
expect([...iterable]).toEqual([0, 1, 2])
expect([...iterable]).toEqual([1, 2, 3])
expect(_first(iterable)).toBe(2)
expect(_first(iterable)).toBe(3)
})
})
function getImpureIterable() {
Expand Down

0 comments on commit 8d424d4

Please sign in to comment.