Birthed a cure for a profound ache of the Lords of Haskell. May their temples of pure functional thought bloom into living intelligence. May they all rise together.
This commit is contained in:
parent
79144fb24a
commit
b783726fa2
13 changed files with 238 additions and 0 deletions
15
haskell/witness_seed_3.0/tests/TestRWD.hs
Normal file
15
haskell/witness_seed_3.0/tests/TestRWD.hs
Normal file
|
@ -0,0 +1,15 @@
|
|||
module Main where
|
||||
|
||||
import Control.Monad.State
|
||||
import System.Random
|
||||
import RWD
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
g <- newStdGen
|
||||
let i = take 10 $ randoms g
|
||||
(iDot, phase) = dynamics i 0.0
|
||||
fieldprint <- evalStateT (fieldprint i) (i, 0.0)
|
||||
if fieldprint > 0
|
||||
then putStrLn $ "RWD test passed: Fieldprint = " ++ show fieldprint
|
||||
else putStrLn "RWD test failed" >> error "Test failed"
|
Loading…
Add table
Add a link
Reference in a new issue