Skip to content

Commit 418cbf2

Browse files
committed
done
1 parent 8a70729 commit 418cbf2

File tree

2 files changed

+4
-7
lines changed
  • plutus-core/untyped-plutus-core

2 files changed

+4
-7
lines changed

plutus-core/untyped-plutus-core/src/UntypedPlutusCore/Parser.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ term =
105105
withSpan $ \sp -> do
106106
_ <- try (symbol "[")
107107
t <- appTerm sp
108-
_ <- symbol "]"
108+
_ <- char ']'
109109
return t
110110

111111
tryTermInParens :: Parser PTerm
@@ -124,7 +124,7 @@ term =
124124
, try (symbol "constr") *> constrTerm sp
125125
, try (symbol "case") *> caseTerm sp
126126
]
127-
_ <- symbol ")"
127+
_ <- char ')'
128128
return t
129129

130130
-- | Parser for UPLC programs.

plutus-core/untyped-plutus-core/testlib/Generators/Spec.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import Control.Lens (view)
1111
import Control.Monad (unless)
1212
import Data.Text (Text)
1313
import Data.Text qualified as T
14-
import Debug.Trace
15-
import Hedgehog (Gen, Property, annotate, annotateShow, failure, property, tripping, (===))
14+
import Hedgehog (annotate, annotateShow, failure, property, tripping, (===))
1615
import Hedgehog.Gen qualified as Gen
1716
import Hedgehog.Range qualified as Range
1817
import PlutusCore (Name)
@@ -66,7 +65,6 @@ propTermSrcSpan = testPropertyNamed
6665
case result of
6766
Right term -> do
6867
let (endingLine', endingCol') = getTermEndingLineAndCol term
69-
annotateShow (endingLine', endingCol', "asdasdasdasdasdasdasdasdasdasdasd")
7068
(endingLine', endingCol') === (endingLine, endingCol + 1)
7169
Left err ->
7270
handleParseError err
@@ -88,8 +86,7 @@ propTermSrcSpan = testPropertyNamed
8886

8987
getTermEndingLineAndCol term = do
9088
let sp = termAnn term
91-
let x = (srcSpanELine sp, srcSpanECol sp)
92-
traceShow (term, sp, x) $ x
89+
(srcSpanELine sp, srcSpanECol sp)
9390

9491
handleParseError err = annotate (display err) >> failure
9592

0 commit comments

Comments
 (0)