1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

🔥 redundant specs.

This commit is contained in:
Rob Rix 2019-07-22 14:26:49 -04:00
parent 45a3d6f0c1
commit 95226623bf
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -79,12 +79,6 @@ assert_unicode_lambda_parse = "λa → a" `parsesInto` lam (named' "a") a
assert_quoted_name_parse :: Assertion
assert_quoted_name_parse = "#{(NilClass)}" `parsesInto` pure "(NilClass)"
assert_let_dot_precedence :: Assertion
assert_let_dot_precedence = "let a = f.g.h" `parsesInto` (let' "a" .= (f ... g ... h))
assert_let_in_push_precedence :: Assertion
assert_let_in_push_precedence = "f.let g = h" `parsesInto` (f ... (let' "g" .= h))
parserSpecs :: TestTree
parserSpecs = testGroup "Parsing: simple specs"
[ testCase "true/false" assert_booleans_parse
@ -95,8 +89,6 @@ parserSpecs = testGroup "Parsing: simple specs"
, testCase "lambda with ASCII syntax" assert_ascii_lambda_parse
, testCase "lambda with unicode syntax" assert_unicode_lambda_parse
, testCase "quoted names" assert_quoted_name_parse
, testCase "let + dot precedence" assert_let_dot_precedence
, testCase "let in push" assert_let_in_push_precedence
]
assert_roundtrips :: File (Term Core User) -> Assertion