uebung2017_1/test/Aufgabe1-Spec.hs
Yannick Gottschalk 9ba103928d initial commit
2017-04-24 00:15:00 +02:00

18 lines
519 B
Haskell

import Aufgabe1
import Test.Framework.Providers.HUnit (testCase)
import Test.Framework.Runners.Console (defaultMain)
import Test.HUnit
test1 = testCase "filter funktioniert" $ assertEqual "Vowel filter" "Hll Wrld!" result
testSentence2 = "Is really EVERY VowEL of this uSEleSS SentencE remOved?"
testResult2 = "s rlly VRY VwL f ths SlSS Sntnc rmvd?"
test2 = testCase "filter test" $ assertEqual testSentence2 testResult2 $ filterVowels testSentence2
tests = [test1, test2]
main :: IO ()
main = defaultMain tests