]> git.lizzy.rs Git - rust.git/commitdiff
Add idem test for paren
authorGaëtan Cassiers <gaetan.cassiers@gmail.com>
Sun, 24 May 2015 20:07:18 +0000 (22:07 +0200)
committerGaëtan Cassiers <gaetan.cassiers@gmail.com>
Sun, 24 May 2015 20:08:35 +0000 (22:08 +0200)
tests/idem/paren.rs [new file with mode: 0644]

diff --git a/tests/idem/paren.rs b/tests/idem/paren.rs
new file mode 100644 (file)
index 0000000..f04068e
--- /dev/null
@@ -0,0 +1,16 @@
+// Test parenthesis
+
+fn foo() {
+    let very_long_variable_name = (a + first + simple + test);
+    let very_long_variable_name = (write + something + here + to + fill + the + line + 12 + 34 + 567
+                                   );
+    let very_long_variable_name = (write + something + here + to + fill + the + line + 12 + 34 + 567
+                                   + 78);
+    let very_long_variable_name = (write + something + here + to + fill + the + line + 12 + 34 + 567
+                                   + 78 + fill + another + line + AAAA + BBBBBBB + CCCCCCCCCCCCCCCCC
+                                   );
+    let very_long_variable_name = (write + something + here + to + fill + the + line + 12 + 34 + 567
+                                   + 78 + fill + another + line + AAAA + BBBBBBB + CCCCCCCCCCCCCCC +
+                                   DDDDDDD + EEEEEE);
+
+}