-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
module Sumas_de_dos_abundantes_Spec (main, spec) where | ||
|
||
import Sumas_de_dos_abundantes | ||
import Test.Hspec | ||
import Test.QuickCheck | ||
import Sumas_de_dos_abundantes (spec) | ||
import Test.Hspec (hspec) | ||
|
||
main :: IO () | ||
main = hspec spec | ||
|
||
specG :: [Integer] -> Spec | ||
specG sumasDeDosAbundantes = do | ||
it "e1" $ | ||
take 10 sumasDeDosAbundantes `shouldBe` [24,30,32,36,38,40,42,44,48,50] | ||
|
||
spec :: Spec | ||
spec = do | ||
describe "def. 1" $ specG sumasDeDosAbundantes1 | ||
describe "def. 2" $ specG sumasDeDosAbundantes2 | ||
describe "equivalencia" $ it "p1" $ property prop_sumasDeDosAbundantes |