diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-06-10 15:03:59 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-06-10 15:03:59 +0200 |
commit | 0daa059aa8c6ece13d337e6f3dba30b89527530d (patch) | |
tree | d5f91a65a54527d7f238aace18761bf0589c3efd /src | |
parent | c9d9195f824a064c7af5e8192df14168870d3378 (diff) | |
download | 2017-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.hs | 12 |
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 | |||
17 | import Data.Default | 17 | import Data.Default |
18 | import Data.List | 18 | import Data.List |
19 | import Data.Maybe | 19 | import Data.Maybe |
20 | import Data.Monoid | ||
20 | 21 | ||
21 | import Data.CaseInsensitive (CI) | 22 | import Data.CaseInsensitive (CI) |
22 | import qualified Data.CaseInsensitive as CI | 23 | import qualified Data.CaseInsensitive as CI |
@@ -29,12 +30,15 @@ import Data.Traversable (mapM) | |||
29 | import Prelude hiding (mapM) | 30 | import Prelude hiding (mapM) |
30 | 31 | ||
31 | tests :: MonadReader Stats m => m (Map (CI String) (FormulaM Stats Test)) | 32 | tests :: MonadReader Stats m => m (Map (CI String) (FormulaM Stats Test)) |
32 | tests = mconcat <$> sequence [ test "Stärke" $ sAStrength . attributeTest | 33 | tests = 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 | ||