Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 14bbf68

Browse files
author
Patrick Thomson
committed
Kill verbatim, since we have more principled golden tests now.
1 parent 11442cf commit 14bbf68

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/SpecHelpers.hs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ module SpecHelpers
1010
, runTaskOrDie
1111
, TaskSession(..)
1212
, testEvaluating
13-
, verbatim
14-
, Verbatim(..)
1513
, toList
1614
, Config
1715
, LogQueue
@@ -195,17 +193,3 @@ lookupDeclaration name (currentScope, currentFrame) heap scopeGraph = do
195193
path <- ScopeGraph.lookupScopePath name currentScope scopeGraph
196194
frameAddress <- Heap.lookupFrameAddress path currentFrame heap
197195
toList <$> Heap.getSlotValue (Slot frameAddress (Heap.pathPosition path)) heap
198-
199-
newtype Verbatim = Verbatim ByteString
200-
deriving (Eq)
201-
202-
instance Show Verbatim where
203-
showsPrec _ (Verbatim byteString) = (T.unpack (T.decodeUtf8 byteString) ++)
204-
205-
verbatim :: ByteString -> Verbatim
206-
verbatim = Verbatim . stripWhitespace
207-
where
208-
stripWhitespace :: ByteString -> ByteString
209-
stripWhitespace = B.foldl' go B.empty
210-
where go acc x | x `B.elem` " \t\n" = acc
211-
| otherwise = B.snoc acc x

0 commit comments

Comments
 (0)