Skip to content

Commit 9025728

Browse files
committed
Fix tests
1 parent 6f34102 commit 9025728

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/Main.purs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
module Test.Main where
22

33
import Prelude
4-
import Data.Traversable (traverse)
5-
import Control.Monad.Eff
4+
import Control.Monad.Eff (Eff)
65
import Control.Monad.Eff.Console (log, CONSOLE())
7-
import Test.Assert
8-
9-
import Node.Buffer
10-
import Node.Encoding
6+
import Data.Traversable (traverse)
7+
import Node.Buffer (BUFFER, BufferValueType(..), toArray, concat', fromArray, fill, copy, readString, fromString, toString, read, write, create)
8+
import Node.Encoding (Encoding(..))
9+
import Test.Assert (ASSERT, assert')
1110

1211
type Test = forall e. Eff (assert :: ASSERT, buffer :: BUFFER, console :: CONSOLE | e) Unit
1312

@@ -124,6 +123,6 @@ testConcat' = do
124123
assertEq :: forall a. (Eq a, Show a) => a -> a -> Test
125124
assertEq x y =
126125
if x == y
127-
then return unit
128-
else let msg = show x ++ " and " ++ show y ++ " were not equal."
126+
then pure unit
127+
else let msg = show x <> " and " <> show y <> " were not equal."
129128
in assert' msg false

0 commit comments

Comments
 (0)