Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leana8959 committed Sep 14, 2024
1 parent ae7a70d commit f4612ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/ParserSpec.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}

module ParserSpec where

import Data.Text qualified as T (unlines)
import Test.Hspec
import Text.Megaparsec

Expand Down Expand Up @@ -48,8 +45,8 @@ spec =
)
(Implies (Var "r") (Not (Var "p")))
it "should handle linebreak" do
T.unlines ["a", "b", "c"] =? And (And (Var "a") (Var "b")) (Var "c")
T.unlines
unlines ["a", "b", "c"] =? And (And (Var "a") (Var "b")) (Var "c")
unlines
[ "p \\/ q \\/ r"
, "p -> (~q)"
, "q -> (~r)"
Expand All @@ -66,7 +63,7 @@ spec =
)
(Implies (Var "r") (Not (Var "p")))
it "should not halt where multiple empty lines are present" do
T.unlines
unlines
[ "p \\/ q \\/ r"
, ""
, "p -> (~q)"
Expand Down

0 comments on commit f4612ab

Please sign in to comment.