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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# OPTIONS_GHC -fno-warn-unused-imports #-} | |
import Control.Applicative | |
import Control.Monad | |
import Control.Monad.IO.Class | |
import Control.Monad.Trans.Except | |
import Data.Aeson |
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
module SumProduct ( | |
KnownColor (..) | |
, RGB (..) | |
, redColor | |
, magenta | |
, red | |
) where | |
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
{-# LANGUAGE TemplateHaskell #-} | |
module Discordia.TH where | |
import Language.Haskell.Extract (functionExtractorMap) | |
import Language.Haskell.TH | |
import Test.Framework (defaultMain) | |
import Test.HUnit (Test(..)) | |
discover :: ExpQ |
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
resolver: | |
lts-11.22 | |
extra-deps: | |
- hedgehog-0.6.1 |
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
import { Clarinet, Tx, Chain, Account, types } | |
from 'https://deno.land/x/clarinet@v0.14.0/index.ts'; | |
import { assert, assertEquals } | |
from 'https://deno.land/std@0.90.0/testing/asserts.ts'; | |
import fc | |
from 'https://cdn.skypack.dev/fast-check'; | |
Clarinet.test({ |
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
Clarinet.test({ | |
name: "ascii-to-buff", | |
runs: 1000, | |
logs: true, | |
data: { | |
text: { | |
minLength: 0, | |
maxLength: 127, | |
} | |
}, |
OlderNewer