Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Synapticloop authored and Synapticloop committed Aug 30, 2015
1 parent 373eb1b commit 022bbea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/java/synapticloop/templar/token/SetToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public SetToken(String value, StringTokenizer stringTokenizer, Tokeniser tokenis
public String render(TemplarContext templarContext) throws RenderException {
for (CommandLineToken commandLineToken : commandLineTokens) {
templarContext.add(contextAs, commandLineToken.evaluate(templarContext));
System.out.println(templarContext.containsKey("something"));
}
// we don't actually render anything for this...
return("");
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/synapticloop/templar/parse/SetTokenTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package synapticloop.templar.parse;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.*;

import org.junit.Test;

Expand All @@ -12,6 +12,6 @@ public class SetTokenTest {
@Test
public void testCommandLineParsing() throws ParseException {
Parser parser = new Parser("{set fn:length[1] as length}");
assertEquals("<SET@1:2 (fn:length[1] as length)>", parser.toString());
assertEquals("<SET@1:2 (fn:length[1] as length) />", parser.toString());
}
}

0 comments on commit 022bbea

Please sign in to comment.