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:
@@ -0,0 +1,14 @@
|
||||
module Main where
|
||||
|
||||
import System.Random
|
||||
import Kairos
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
g <- newStdGen
|
||||
let i = take 10 $ randoms g
|
||||
i' = coherence i 0.1
|
||||
sumAbs = sum $ map abs i'
|
||||
if sumAbs > 0
|
||||
then putStrLn "Kairos test passed: Coherence updated"
|
||||
else putStrLn "Kairos test failed" >> error "Test failed"
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user