changeset 22292:0e13cbebc04c

Truffle/Source: remove two previously @Ignored tests that are inconsistent with the current text model being used.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Thu, 08 Oct 2015 10:07:07 -0400
parents c3ea80aa5762
children 9f478b9db4f7
files truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceSectionTest.java
diffstat 1 files changed, 5 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceSectionTest.java	Thu Oct 08 14:21:33 2015 +0200
+++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceSectionTest.java	Thu Oct 08 10:07:07 2015 -0400
@@ -22,12 +22,13 @@
  */
 package com.oracle.truffle.api.test.source;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+import org.junit.Test;
+
 import com.oracle.truffle.api.source.Source;
 import com.oracle.truffle.api.source.SourceSection;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import org.junit.Ignore;
-import org.junit.Test;
 
 public class SourceSectionTest {
 
@@ -56,14 +57,6 @@
         assertEquals(section.getStartColumn(), 1);
     }
 
-    @Ignore
-    @Test
-    public void emptyLineTest0a() {
-        SourceSection section = emptyLineSource.createSection("test", 0, 0);
-        assertEquals(section.getEndLine(), 1);
-        assertEquals(section.getEndColumn(), 1);
-    }
-
     @Test
     public void emptyLineTest1() {
         SourceSection section = emptyLineSource.createSection("test", 0, 1);
@@ -77,20 +70,6 @@
         assertEquals(section.getEndColumn(), 1);
     }
 
-    @Ignore
-    @Test
-    public void emptyLineTest2() {
-        SourceSection section = emptyLineSource.createSection("test", 1, 0);
-        assertNotNull(section);
-        assertEquals(section.getCode(), "");
-        assertEquals(section.getCharIndex(), 1);
-        assertEquals(section.getCharLength(), 0);
-        assertEquals(section.getStartLine(), 1);
-        assertEquals(section.getStartColumn(), 1);
-        assertEquals(section.getEndLine(), 1);
-        assertEquals(section.getEndColumn(), 1);
-    }
-
     @Test
     public void emptySectionTest2() {
         SourceSection section = shortSource.createSection("test", 0, 0);