Whitespace tweaks.
This commit is contained in:
@@ -26,7 +26,7 @@ public class SpecTest {
|
||||
private final Spec spec;
|
||||
private final String name;
|
||||
|
||||
public SpecTest(Spec spec, String name) {
|
||||
public SpecTest (Spec spec, String name) {
|
||||
super();
|
||||
this.spec = spec;
|
||||
this.name = name;
|
||||
@@ -42,7 +42,7 @@ public class SpecTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
public void test () throws Exception {
|
||||
//System.out.println("Testing: " + name);
|
||||
loader.setSpec(spec);
|
||||
String tmpl = spec.getTemplate();
|
||||
@@ -75,7 +75,7 @@ public class SpecTest {
|
||||
}
|
||||
}
|
||||
|
||||
private static String showWhitespace(String s) {
|
||||
private static String showWhitespace (String s) {
|
||||
s = s.replace("\r\n", "\u240D");
|
||||
s = s.replace('\t', '\u21E5');
|
||||
s = s.replace("\n", "\u21B5\n");
|
||||
@@ -89,13 +89,13 @@ public class SpecTest {
|
||||
}
|
||||
|
||||
@Parameters(name = "{1}")
|
||||
public static Collection<Object[]> data() {
|
||||
String[] groups = new String[] { //
|
||||
"comments", //
|
||||
"delimiters", //
|
||||
"interpolation", //
|
||||
"inverted", //
|
||||
"sections", //
|
||||
public static Collection<Object[]> data () {
|
||||
String[] groups = new String[] {
|
||||
"comments",
|
||||
"delimiters",
|
||||
"interpolation",
|
||||
"inverted",
|
||||
"sections",
|
||||
"partials"
|
||||
};
|
||||
List<Object[]> tuples = new ArrayList<>();
|
||||
@@ -110,7 +110,7 @@ public class SpecTest {
|
||||
return tuples;
|
||||
}
|
||||
|
||||
private static Iterable<Spec> getTestsForGroup(String name) {
|
||||
private static Iterable<Spec> getTestsForGroup (String name) {
|
||||
String ymlPath = "/specs/specs/" + name + ".yml";
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user