2017-03-08 21:33:55 +03:00
|
|
|
-- Copyright (c) 2016-present, Facebook, Inc.
|
|
|
|
-- All rights reserved.
|
|
|
|
--
|
|
|
|
-- This source code is licensed under the BSD-style license found in the
|
2019-05-22 20:36:43 +03:00
|
|
|
-- LICENSE file in the root directory of this source tree.
|
2017-03-08 21:33:55 +03:00
|
|
|
|
|
|
|
|
2018-11-07 20:02:42 +03:00
|
|
|
module Duckling.Email.Tests
|
|
|
|
( tests
|
|
|
|
) where
|
2017-03-08 21:33:55 +03:00
|
|
|
|
|
|
|
import Data.String
|
2018-11-07 20:02:42 +03:00
|
|
|
import Prelude
|
2017-03-08 21:33:55 +03:00
|
|
|
import Test.Tasty
|
|
|
|
|
|
|
|
import Duckling.Dimensions.Types
|
|
|
|
import Duckling.Email.Corpus
|
2018-11-07 20:02:42 +03:00
|
|
|
import Duckling.Testing.Asserts
|
|
|
|
import qualified Duckling.Email.DE.Tests as DE
|
2017-03-08 21:33:55 +03:00
|
|
|
import qualified Duckling.Email.EN.Tests as EN
|
|
|
|
import qualified Duckling.Email.FR.Tests as FR
|
2018-11-07 20:02:42 +03:00
|
|
|
import qualified Duckling.Email.IS.Tests as IS
|
2017-03-08 21:33:55 +03:00
|
|
|
import qualified Duckling.Email.IT.Tests as IT
|
|
|
|
|
|
|
|
tests :: TestTree
|
|
|
|
tests = testGroup "Email Tests"
|
2017-03-15 20:15:42 +03:00
|
|
|
[ makeCorpusTest [This Email] corpus
|
|
|
|
, makeNegativeCorpusTest [This Email] negativeCorpus
|
2018-11-07 20:02:42 +03:00
|
|
|
, DE.tests
|
2017-03-08 21:33:55 +03:00
|
|
|
, EN.tests
|
|
|
|
, FR.tests
|
2018-11-07 20:02:42 +03:00
|
|
|
, IS.tests
|
2017-03-08 21:33:55 +03:00
|
|
|
, IT.tests
|
|
|
|
]
|