| edu.rice.cs.drjava.model.definitions.reducedmodel.BraceReductionTestCase edu.rice.cs.drjava.model.definitions.reducedmodel.MixedQuoteTest
MixedQuoteTest | final public class MixedQuoteTest extends BraceReductionTestCase implements ReducedModelStates(Code) | | Tests the interaction between double and single quotes and comments
version: $Id: MixedQuoteTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
protected void | insertGap(BraceReduction model, int size) Convenience function to insert a number of non-special characters into a reduced model. | protected void | setUp() Initializes the reduced models used in the tests. | public static Test | suite() Creates a test suite for JUnit to use. | public void | testDoubleEclipsesSingle() Tests how a double quote can eclipse the effects of a single quote by inserting
the double quote before the single quote. | public void | testSingleEclipsesDouble() Tests how a single quote can eclipse the effects of a double quote by inserting
the single quote before the double quote. |
insertGap | protected void insertGap(BraceReduction model, int size)(Code) | | Convenience function to insert a number of non-special characters into a reduced model.
Parameters: model - the model being modified Parameters: size - the number of characters being inserted |
setUp | protected void setUp() throws Exception(Code) | | Initializes the reduced models used in the tests.
|
suite | public static Test suite()(Code) | | Creates a test suite for JUnit to use.
a test suite for JUnit |
testDoubleEclipsesSingle | public void testDoubleEclipsesSingle()(Code) | | Tests how a double quote can eclipse the effects of a single quote by inserting
the double quote before the single quote.
|
testSingleEclipsesDouble | public void testSingleEclipsesDouble()(Code) | | Tests how a single quote can eclipse the effects of a double quote by inserting
the single quote before the double quote. This test caught an error with
getStateAtCurrent(): the check for double quote status checks if there is a double
quote immediately preceding, but it didn't make sure the double quote was FREE.
I fixed that, so now the test passes.
|
|
|