|
From: <caw...@us...> - 2007-06-19 13:00:19
|
Revision: 2627
http://svn.sourceforge.net/rubyeclipse/?rev=2627&view=rev
Author: cawilliams
Date: 2007-06-19 06:00:15 -0700 (Tue, 19 Jun 2007)
Log Message:
-----------
add (failing) test for a case where parentheses probably shouldn't be fixed width
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/FormatTestData.xml
trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/TC_CodeFormatter.java
Modified: trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/FormatTestData.xml
===================================================================
--- trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/FormatTestData.xml 2007-06-19 12:58:57 UTC (rev 2626)
+++ trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/FormatTestData.xml 2007-06-19 13:00:15 UTC (rev 2627)
@@ -676,5 +676,23 @@
</part>
</test>
+<test ID="LineStartingWithParen">
+<part>
+<assertionMessage>Align line starting with paren</assertionMessage>
+<unformatted>
+class A
+ foo
+ (1 - 2).inspect
+end
+</unformatted>
+<formatted>
+class A
+ foo
+ (1 - 2).inspect
+end
+</formatted>
+</part>
+</test>
+
</tests>
Modified: trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/TC_CodeFormatter.java
===================================================================
--- trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/TC_CodeFormatter.java 2007-06-19 12:58:57 UTC (rev 2626)
+++ trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/formatter/TC_CodeFormatter.java 2007-06-19 13:00:15 UTC (rev 2627)
@@ -136,4 +136,8 @@
doTest("RescueModifier");
}
+ public void testParen() {
+ doTest("LineStartingWithParen");
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|