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
|
|
|
|
-- LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
-- of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
|
|
|
|
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
|
|
|
|
]
|