This repository has been archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added many law tests and format datum_either
Still don't have test completion for the laws around the various static-land algebras. Also, I think it might be necessary to change the interface of the asserts to take the various type instances instead of generating them. This will allow testing additional edge cases.
- Loading branch information
Showing
4 changed files
with
345 additions
and
17 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
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,11 +1,11 @@ | ||
import { assertMonad } from "./assert.ts"; | ||
import * as T from "./assert.ts"; | ||
|
||
import * as A from "../array.ts"; | ||
|
||
Deno.test({ | ||
name: "Array Modules", | ||
async fn() { | ||
// Test Laws | ||
await assertMonad(A.Monad, "Array"); | ||
await T.assertMonad(A.Monad, "Array"); | ||
T.assertFilterable(A.Filterable, A.of, "Array"); | ||
}, | ||
}); |
Oops, something went wrong.