use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.
the class ComboJekyllFrontMatterSpecTest method data.
@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
List<Object[]> data = new ArrayList<Object[]>();
// NULL example runs full spec test
data.add(new Object[] { SpecExample.NULL });
for (SpecExample example : examples) {
data.add(new Object[] { example });
}
return data;
}
use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.
the class FileSpecTestCase method dataFromFiles.
public static List<Object[]> dataFromFiles(String[] fileNames, String prefix) {
ArrayList<SpecExample> examples = new ArrayList<SpecExample>();
for (String name : fileNames) {
List<SpecExample> fileExamples = SpecReader.readExamples(prefix + name + "_ast_spec.md");
int i = 1;
for (SpecExample example : fileExamples) {
examples.add(example.withSection(name).withExampleNumber(i++));
}
}
List<Object[]> data = new ArrayList<Object[]>();
for (SpecExample example : examples) {
data.add(new Object[] { example });
}
return data;
}
use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.
the class SpecTestCase method data.
@Parameters(name = "{0}")
public static List<Object[]> data() {
List<SpecExample> examples = SpecReader.readExamples();
List<Object[]> data = new ArrayList<Object[]>();
for (SpecExample example : examples) {
data.add(new Object[] { example });
}
return data;
}
use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.
the class ComboEnumeratedReferenceFormatterSpecTest method data.
@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
List<Object[]> data = new ArrayList<Object[]>();
// NULL example runs full spec test
data.add(new Object[] { SpecExample.NULL });
for (SpecExample example : examples) {
data.add(new Object[] { example });
}
return data;
}
use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.
the class ComboEscapedCharacterSpecTest method data.
@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
List<Object[]> data = new ArrayList<Object[]>();
// NULL example runs full spec test
data.add(new Object[] { SpecExample.NULL });
for (SpecExample example : examples) {
data.add(new Object[] { example });
}
return data;
}
Aggregations