assertEquals(expectedScript, scriptTable);
}
@Test
public void scenarioExtraArgumentsAreIgnored() throws Exception {
SlimTestContextImpl testContext = makeTables(
"!|scenario|echo|input|giving|output||output2|\n" +
"|check|echo|@input|@output|\n" +
"\n" +
"!|script|\n" +
"|echo|7|giving|7|\n"
);
Map<String, Object> pseudoResults = SlimCommandRunningClient.resultToMap(
asList(asList("scriptTable_id_0/scriptTable_s_id_0", "7"))
);
SlimAssertion.evaluateExpectations(assertions, pseudoResults);
String scriptTable = script.getChildren().get(0).getTable().toString();
String expectedScript =
"[[scenario, echo, input, giving, output, , output2], [check, echo, 7, pass(7)]]";
assertEquals(expectedScript, scriptTable);
String dtHtml = script.getTable().toString();
assertEquals(1, testContext.getTestSummary().getRight());
assertEquals(0, testContext.getTestSummary().getWrong());
assertEquals(0, testContext.getTestSummary().getIgnores());
assertEquals(0, testContext.getTestSummary().getExceptions());
}