Resolved broken tests.

This commit is contained in:
A Pottinger
2020-04-20 09:11:36 -07:00
parent 3979d9a0ad
commit 45ee436670
16 changed files with 21 additions and 105 deletions

View File

@@ -1,12 +1,11 @@
package processing.mode.java.preproc.code;
package processing.mode.java.preproc;
import org.antlr.v4.runtime.TokenStreamRewriter;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import processing.mode.java.pdex.TextTransform;
import processing.mode.java.preproc.PdeParseTreeListener;
import processing.mode.java.TextTransform;
import java.util.List;

View File

@@ -1,24 +0,0 @@
package processing.mode.java.preproc.util;
import org.junit.Assert;
import org.junit.Test;
import processing.mode.java.preproc.code.SyntaxUtil;
public class SyntaxUtilTest {
@Test
public void getCountPresent() {
String input = "test1,test2\n,test3";
int count = processing.mode.java.preproc.code.SyntaxUtil.getCount(input, ",");
Assert.assertEquals(2, count);
}
@Test
public void getCountNotPresent() {
String input = "test1 test2 test3";
int count = SyntaxUtil.getCount(input, ",");
Assert.assertEquals(0, count);
}
}