2020-08-22 06:39:52 +02:00
|
|
|
{- This Source Code Form is subject to the terms of the Mozilla Public License,
|
|
|
|
v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
|
|
obtain one at https://mozilla.org/MPL/2.0/. -}
|
|
|
|
|
2020-05-24 13:51:00 +02:00
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
module Language.GraphQL.Type.OutSpec
|
|
|
|
( spec
|
|
|
|
) where
|
|
|
|
|
2020-06-19 10:53:41 +02:00
|
|
|
import Language.GraphQL.Type
|
2020-05-24 13:51:00 +02:00
|
|
|
import Test.Hspec (Spec, describe, it, shouldBe)
|
|
|
|
|
|
|
|
spec :: Spec
|
|
|
|
spec =
|
|
|
|
describe "Value" $
|
|
|
|
it "supports overloaded strings" $
|
2020-05-27 23:18:35 +02:00
|
|
|
let nietzsche = "Goldstaub abblasen." :: Value
|
|
|
|
in nietzsche `shouldBe` String "Goldstaub abblasen."
|