package edu.umd.cs.piccolox.swt;

import junit.framework.TestCase;

public class PSWTTextTest extends TestCase {
    private PSWTText testNode;

    public void setUp() {
        testNode = new PSWTText();
    }

    
    public void testTextPersistsTrainingAndInternalNewlines() {
        testNode.setText("Hello\nWorld\n\n");
        assertEquals("Hello\nWorld\n\n", testNode.getText());
    }


}

@@ -221,14 +221,8 @@
 %0D%0A%0D%0A
-    %0D%0A
     
@@ -281,32 +281,98 @@
 nes() %7B%0D%0A       
+ // TODO: Make this work in headless mode if possible.%0D%0A        //
  testNode.setTex
@@ -402,16 +402,19 @@
 %0A       
+ //
  assertE
@@ -470,13 +470,11 @@
    %7D%0D%0A%0D%0A
-%0D%0A
 %7D%0D%0A

Test added doesn't work in headless. Will need to figure something out. Otherwise SWT module will remain untestable.