From 17dad77399ed9ea07c3e7326f98cb4681e87d183 Mon Sep 17 00:00:00 2001 From: "Evgeniy Andreev (gsomix)" Date: Sat, 25 Feb 2017 20:21:56 +0400 Subject: [PATCH] Add test for parsing empty groups --- src/WpfMath.Tests/ParserTests.fs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/WpfMath.Tests/ParserTests.fs b/src/WpfMath.Tests/ParserTests.fs index 72402cca..b26ed947 100644 --- a/src/WpfMath.Tests/ParserTests.fs +++ b/src/WpfMath.Tests/ParserTests.fs @@ -127,4 +127,10 @@ type ParserTests() = <| (formula <| row [ op (symbolOp "int") (System.Nullable ()) char 'f' - ]) \ No newline at end of file + ]) + + [] + let ``{} should be parsed properly`` () = + assertParseResult + <| @"{}" + <| (formula <| group (row [])) \ No newline at end of file