aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-05 19:56:15 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-02-05 19:56:15 +0100
commita63e763058973d838f8b7346d2c1e37dcce7abc8 (patch)
treeee98c5b6904368267e63ee318e43f7be1c0659ff /src
parent5a6f41f02897eb0591470670789d22902b3f8742 (diff)
downloadsylt-a63e763058973d838f8b7346d2c1e37dcce7abc8.tar.gz
add some regression tests
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c1280b3..cfbbe50 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -999,4 +999,10 @@ a.a <=> 1
a.a -= 1
a.a <=> 0"
);
+
+ test_multiple!(
+ newline_regression,
+ simple: "a := 1 // blargh \na += 1 // blargh \n a <=> 2 // HARGH",
+ expressions: "1 + 1 // blargh \n 2 // blargh \n // HARGH \n",
+ );
}