hwtest.selftest

Value members

Concrete methods

def testhw(hw: => hw, testData: String, expectedOutput: String): Unit

Verifies that hw produces the expected output for the given test data.

Verifies that hw produces the expected output for the given test data.

Throws an Exception with a description of the mismatch if the received output differs from the expected output in a significant way.

There are portions of the output (especially date/time information) that should be ignored in this comparison. If a line in the expected output contains a ###, then only the the portions of the lines before the ### will be compared. For example, the following two lines would be considered to match.

 the quick br###       [expected]
 the quick brown fox   [received]