|
From: <caw...@us...> - 2006-10-30 00:39:32
|
Revision: 1633
http://svn.sourceforge.net/rubyeclipse/?rev=1633&view=rev
Author: cawilliams
Date: 2006-10-29 16:39:27 -0800 (Sun, 29 Oct 2006)
Log Message:
-----------
add test for syntax which used to result in infinite loop bug
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java
Modified: trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java
===================================================================
--- trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java 2006-10-30 00:39:00 UTC (rev 1632)
+++ trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java 2006-10-30 00:39:27 UTC (rev 1633)
@@ -23,6 +23,11 @@
return partitioner.getContentType(offset);
}
+ public void testUnclosedInterpolationDoesntInfinitelyLoop() {
+ String source = "%[\"#{\"]";
+ this.getContentType(source, 0);
+ assert(true);
+ }
public void testPartitioningOfSingleLineComment() {
String source = "# This is a comment\n";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|