summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-06-10 15:03:59 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-06-10 15:03:59 +0200
commit0daa059aa8c6ece13d337e6f3dba30b89527530d (patch)
treed5f91a65a54527d7f238aace18761bf0589c3efd /src
parentc9d9195f824a064c7af5e8192df14168870d3378 (diff)
download2017-01-16_17:13:37-0daa059aa8c6ece13d337e6f3dba30b89527530d.tar
2017-01-16_17:13:37-0daa059aa8c6ece13d337e6f3dba30b89527530d.tar.gz
2017-01-16_17:13:37-0daa059aa8c6ece13d337e6f3dba30b89527530d.tar.bz2
2017-01-16_17:13:37-0daa059aa8c6ece13d337e6f3dba30b89527530d.tar.xz
2017-01-16_17:13:37-0daa059aa8c6ece13d337e6f3dba30b89527530d.zip
make extraTests available
Diffstat (limited to 'src')
-rw-r--r--src/Sequence/Contact/Tests.hs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Sequence/Contact/Tests.hs b/src/Sequence/Contact/Tests.hs
index a3b15d7..8665186 100644
--- a/src/Sequence/Contact/Tests.hs
+++ b/src/Sequence/Contact/Tests.hs
@@ -17,6 +17,7 @@ import Control.Lens
17import Data.Default 17import Data.Default
18import Data.List 18import Data.List
19import Data.Maybe 19import Data.Maybe
20import Data.Monoid
20 21
21import Data.CaseInsensitive (CI) 22import Data.CaseInsensitive (CI)
22import qualified Data.CaseInsensitive as CI 23import qualified Data.CaseInsensitive as CI
@@ -29,12 +30,15 @@ import Data.Traversable (mapM)
29import Prelude hiding (mapM) 30import Prelude hiding (mapM)
30 31
31tests :: MonadReader Stats m => m (Map (CI String) (FormulaM Stats Test)) 32tests :: MonadReader Stats m => m (Map (CI String) (FormulaM Stats Test))
32tests = mconcat <$> sequence [ test "Stärke" $ sAStrength . attributeTest 33tests = do
34 baseTests <- mconcat <$> sequence [ test "Stärke" $ sAStrength . attributeTest
35
36 , test "Archaische Distanzwaffen" $ sSArchaicRanged . skillTest
33 37
34 , test "Archaische Distanzwaffen" $ sSArchaicRanged . skillTest 38 , test "Beißen" $ sSBiting . skillTest
39 ]
35 40
36 , test "Beißen" $ sSBiting . skillTest 41 views sExtraSkills (baseTests <>)
37 ]
38 where 42 where
39 test k v = maybe mempty (Map.singleton k) <$> preview v 43 test k v = maybe mempty (Map.singleton k) <$> preview v
40 44