diff options
Diffstat (limited to 'src/Sequence/Contact')
-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 | ||