-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Synapticloop
authored and
Synapticloop
committed
Feb 9, 2016
1 parent
ecf04fe
commit 65fb4fd
Showing
6 changed files
with
80 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri Oct 30 15:05:30 GMT 2015 | ||
#Wed Nov 25 10:24:10 GMT 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/test/java/synapticloop/templar/function/string/FunctionSplitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package synapticloop.templar.function.string; | ||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import synapticloop.templar.exception.FunctionException; | ||
import synapticloop.templar.function.FunctionLength; | ||
|
||
public class FunctionSplitTest { | ||
private FunctionSplit functionSplit = null; | ||
private FunctionLength functionLength = null; | ||
|
||
@Before | ||
public void setup() { | ||
functionSplit = new FunctionSplit(); | ||
functionLength = new FunctionLength(); | ||
} | ||
|
||
@Test | ||
public void testMethodName() throws FunctionException { | ||
Object evaluate = functionSplit.evaluate("split", new Object[] { "1,1,1,1,1", "," }, null); | ||
assertEquals(5, functionLength.evaluate("length", new Object[] { evaluate }, null)); | ||
} | ||
} |