Skip to content

A peer-to-peer stack for code collaboration

Remove outdated test. (#96)

Julian Arni0aa70e106be9
diff --git a/src/Radicle/Internal/Parse.hs b/src/Radicle/Internal/Parse.hs
index 72ba9a3..a43c045 100644
--- a/src/Radicle/Internal/Parse.hs
+++ b/src/Radicle/Internal/Parse.hs
@@ -1,6 +1,6 @@
module Radicle.Internal.Parse where
-import Protolude hiding (some, try)
+import Protolude hiding (try)
import Data.Char (isAlphaNum, isLetter)
import Data.List.NonEmpty (NonEmpty((:|)))
diff --git a/src/Radicle/Internal/Pretty.hs b/src/Radicle/Internal/Pretty.hs
index ba9db1b..9e81aee 100644
--- a/src/Radicle/Internal/Pretty.hs
+++ b/src/Radicle/Internal/Pretty.hs
@@ -63,7 +63,7 @@ instance Pretty r => Pretty (LangError r) where
-- Examples:
--
-- >>> renderCompactPretty (List [String "hi", String "there"])
--- "(\"hi\" \"there\")"
+-- "(\"hi\"\n\"there\")"
renderCompactPretty :: Pretty v => v -> Text
renderCompactPretty = renderStrict . layoutCompact . pretty
@@ -75,7 +75,7 @@ renderCompactPretty = renderStrict . layoutCompact . pretty
-- "(\"hi\" \"there\")"
--
-- >>> renderPretty (AvailablePerLine 6 0.5) (List [String "hi", String "there"])
--- "(\"hi\" \"there\")"
+-- "(\"hi\"\n \"there\")"
renderPretty :: Pretty v => PageWidth -> v -> Text
renderPretty pg = renderStrict . layoutSmart (LayoutOptions pg) . pretty
diff --git a/test/spec/Radicle/Tests.hs b/test/spec/Radicle/Tests.hs
index 8acaa0e..6a545b6 100644
--- a/test/spec/Radicle/Tests.hs
+++ b/test/spec/Radicle/Tests.hs
@@ -473,19 +473,7 @@ test_binding =
test_pretty :: [TestTree]
test_pretty =
- [ testProperty "parse . pretty == identity" $ \(val :: Value) ->
- let rendered = renderPrettyDef val
- actual = parseTest rendered
- original = removeEnv val
- info = case actual of
- Left e -> "parse error in: " <> toS rendered <> "\n"
- <> toS e
- Right v -> "pretty: " <> toS rendered <> "\n"
- <> "reparsed: " <> show v <> "\n"
- <> "original: " <> show original <> "\n"
- in counterexample info $ actual == Right original
-
- , testCase "long lists are indented" $ do
+ [ testCase "long lists are indented" $ do
let r = renderPretty (apl 5) (List [String "fn", String "abc"])
r @?= "(\"fn\"\n \"abc\")"