-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Place submodules under src/ directory
- Loading branch information
Showing
27 changed files
with
50 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
export { fromIterable, toArray, toMap, toSet } from "./collections.ts"; | ||
export { concat } from "./concat.ts"; | ||
export { drop, dropWhile } from "./drop.ts"; | ||
export { filter } from "./filter.ts"; | ||
export { reduce } from "./fold.ts"; | ||
export { count, cycle, repeat } from "./infinite.ts"; | ||
export { map } from "./map.ts"; | ||
export { Range, range } from "./range.ts"; | ||
export { take, takeWhile } from "./take.ts"; | ||
export { tee } from "./tee.ts"; | ||
export { assertStreams, assertStreamStartsWith } from "./testing.ts"; | ||
export { groupBy, unique } from "./unique.ts"; | ||
export * from "./src/mod.ts"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export { fromIterable, toArray, toMap, toSet } from "./collections.ts"; | ||
export { concat } from "./concat.ts"; | ||
export { drop, dropWhile } from "./drop.ts"; | ||
export { filter } from "./filter.ts"; | ||
export { reduce } from "./fold.ts"; | ||
export { count, cycle, repeat } from "./infinite.ts"; | ||
export { map } from "./map.ts"; | ||
export { Range, range } from "./range.ts"; | ||
export { take, takeWhile } from "./take.ts"; | ||
export { tee } from "./tee.ts"; | ||
export { assertStreams, assertStreamStartsWith } from "./testing.ts"; | ||
export { groupBy, unique } from "./unique.ts"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { assertEquals } from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import * as fc from "npm:[email protected]"; | ||
import { fromIterable, toArray, toMap, toSet } from "../collections.ts"; | ||
import { assertStreams } from "../testing.ts"; | ||
import { fromIterable, toArray, toMap, toSet } from "../src/collections.ts"; | ||
import { assertStreams } from "../src/testing.ts"; | ||
import { getAsyncIterable } from "./testing_test.ts"; | ||
|
||
function* toIterable<T>(...values: T[]): Iterable<T> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import * as fc from "npm:[email protected]"; | ||
import { fromIterable } from "../collections.ts"; | ||
import { concat } from "../concat.ts"; | ||
import { assertStreams } from "../testing.ts"; | ||
import { fromIterable } from "../src/collections.ts"; | ||
import { concat } from "../src/concat.ts"; | ||
import { assertStreams } from "../src/testing.ts"; | ||
import { getAsyncIterable } from "./testing_test.ts"; | ||
|
||
Deno.test("concat()", async () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { assert } from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import * as fc from "npm:[email protected]"; | ||
import { fromIterable } from "../collections.ts"; | ||
import { drop, dropWhile } from "../drop.ts"; | ||
import { count } from "../infinite.ts"; | ||
import { take } from "../take.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../testing.ts"; | ||
import { fromIterable } from "../src/collections.ts"; | ||
import { drop, dropWhile } from "../src/drop.ts"; | ||
import { count } from "../src/infinite.ts"; | ||
import { take } from "../src/take.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../src/testing.ts"; | ||
|
||
Deno.test("drop()", async () => { | ||
await assertStreamStartsWith(drop(count(0), 0), [0, 1, 2, 3, 4, 5, 6, 7, 8]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import { | |
assertEquals, | ||
assertRejects, | ||
} from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import { reduce } from "../fold.ts"; | ||
import { reduce } from "../src/fold.ts"; | ||
import { getAsyncIterable } from "./testing_test.ts"; | ||
|
||
Deno.test("reduce()", async () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { assertThrows } from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import { count, cycle, repeat } from "../infinite.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../testing.ts"; | ||
import { count, cycle, repeat } from "../src/infinite.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../src/testing.ts"; | ||
|
||
Deno.test("count()", async () => { | ||
await assertStreamStartsWith(count(0), [0, 1, 2, 3, 4, 5]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { assertRejects } from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import { count, repeat } from "../infinite.ts"; | ||
import { map } from "../map.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../testing.ts"; | ||
import { count, repeat } from "../src/infinite.ts"; | ||
import { map } from "../src/map.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../src/testing.ts"; | ||
|
||
Deno.test("map()", async () => { | ||
await assertStreams( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ import { | |
assertThrows, | ||
} from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import * as fc from "npm:[email protected]"; | ||
import { assertStreams } from "../testing.ts"; | ||
import { Range, range } from "../range.ts"; | ||
import { assertStreams } from "../src/testing.ts"; | ||
import { Range, range } from "../src/range.ts"; | ||
|
||
function validNumber(): fc.Arbitrary<number> { | ||
return fc.oneof( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { assert } from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import * as fc from "npm:[email protected]"; | ||
import { fromIterable } from "../collections.ts"; | ||
import { count } from "../infinite.ts"; | ||
import { take, takeWhile } from "../take.ts"; | ||
import { assertStreams } from "../testing.ts"; | ||
import { fromIterable } from "../src/collections.ts"; | ||
import { count } from "../src/infinite.ts"; | ||
import { take, takeWhile } from "../src/take.ts"; | ||
import { assertStreams } from "../src/testing.ts"; | ||
|
||
Deno.test("take()", async () => { | ||
await assertStreams(take(count(0), 0), []); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import * as fc from "npm:[email protected]"; | ||
import { fromIterable } from "../collections.ts"; | ||
import { tee } from "../tee.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../testing.ts"; | ||
import { fromIterable } from "../src/collections.ts"; | ||
import { tee } from "../src/tee.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../src/testing.ts"; | ||
|
||
async function* getRandomNumbers(): AsyncIterableIterator<number> { | ||
while (true) yield Math.random(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ import { | |
assertRejects, | ||
} from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import * as fc from "npm:[email protected]"; | ||
import { fromIterable } from "../collections.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../testing.ts"; | ||
import { fromIterable } from "../src/collections.ts"; | ||
import { assertStreams, assertStreamStartsWith } from "../src/testing.ts"; | ||
|
||
export async function* getAsyncIterable<T>( | ||
...args: T[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { assertEquals } from "https://deno.land/[email protected]/assert/mod.ts"; | ||
import { tee } from "../tee.ts"; | ||
import { assertStreams } from "../testing.ts"; | ||
import { groupBy, unique } from "../unique.ts"; | ||
import { tee } from "../src/tee.ts"; | ||
import { assertStreams } from "../src/testing.ts"; | ||
import { groupBy, unique } from "../src/unique.ts"; | ||
import { getAsyncIterable } from "./testing_test.ts"; | ||
|
||
Deno.test("unqiue(source)", async () => { | ||
|