mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 13:21:07 +01:00
Resolved broken tests.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user