aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-12-04 16:54:20 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-12-04 16:54:20 +0000
commitcf8ab8157ebe18538b026379a8221b547b548830 (patch)
treefeda0c04bae1fb0380212ec25db9a5914f645b5d /app
parent9ed95213c0b33c56a1de73703f7fc30c13eee4fa (diff)
downloadverismith-cf8ab8157ebe18538b026379a8221b547b548830.tar.gz
verismith-cf8ab8157ebe18538b026379a8221b547b548830.zip
Add quickcheck to main
Diffstat (limited to 'app')
-rw-r--r--app/Main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Main.hs b/app/Main.hs
index e3efc80..c551ea5 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -5,6 +5,7 @@ import Data.GraphViz
import Data.GraphViz.Attributes.Complete
import Data.Text.IO as T
import Data.Text.Lazy
+import qualified Test.QuickCheck as QC
import Test.VeriFuzz
@@ -17,3 +18,5 @@ main = do
gr <- genRandomDAG 100 :: IO (Gr Gate ())
-- _ <- runGraphviz (graphToDot quickParams $ emap (const "") gr) Png "output.png"
T.putStrLn $ generate gr
+ g <- QC.generate (QC.arbitrary :: QC.Gen SourceText)
+ render $ genSourceText g