diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 21289af..ce8b0cf 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -41,7 +41,7 @@ jobs: run: rm -rf npm - name: Test - run: deno test --unstable --coverage=cov + run: deno test --coverage=cov - name: Generate Coverage shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5c9a4f..8f31723 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,7 @@ jobs: run: deno lint - name: Test - # run: deno test --doc - run: deno test + run: deno test --doc - name: Benchmark run: deno run _benchmark.ts diff --git a/README.md b/README.md index 51a8aec..3fc50d1 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ important and elements are chosen with replacement. import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; import { permutationsWithReplacement } from "https://deno.land/x/combinatorics/mod.ts"; -const sequences = [...permutationsWithReplacement(2, [1, 2, 3, 4])]; +const sequences = [...permutationsWithReplacement([1, 2, 3, 4], 2)]; assertEquals(sequences, [ [1, 1], [1, 2], [1, 3], [1, 4], diff --git a/permutations_with_replacement.ts b/permutations_with_replacement.ts index d2d0870..590457d 100644 --- a/permutations_with_replacement.ts +++ b/permutations_with_replacement.ts @@ -8,7 +8,7 @@ * import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; * import { permutationsWithReplacement } from "https://deno.land/x/combinatorics/mod.ts"; * - * const sequences = [...permutationsWithReplacement(2, [1, 2, 3, 4])]; + * const sequences = [...permutationsWithReplacement([1, 2, 3, 4], 2)]; * * assertEquals(sequences, [ * [1, 1], [1, 2], [1, 3], [1, 4],