Search in sources :

Example 6 with ValueTable

use of de.neemann.digital.data.ValueTable in project Digital by hneemann.

the class TestResultTest method testResultDontCareInput.

public void testResultDontCareInput() throws Exception {
    Model model = getModel("A*0+B");
    TestCaseDescription data = new TestCaseDescription("A B Y\n" + "x 0 0\n" + "x 1 1\n");
    TestExecutor te = new TestExecutor(data).create(model);
    ValueTable tr = te.getResult();
    assertEquals(4, tr.getRows());
    assertTrue(te.allPassed());
}
Also used : ValueTable(de.neemann.digital.data.ValueTable) Model(de.neemann.digital.core.Model)

Aggregations

ValueTable (de.neemann.digital.data.ValueTable)6 Model (de.neemann.digital.core.Model)5 Value (de.neemann.digital.data.Value)1 Export (de.neemann.digital.draw.graphics.Export)1 GraphicsImage (de.neemann.digital.draw.graphics.GraphicsImage)1 ValueTableObserver (de.neemann.digital.gui.components.data.ValueTableObserver)1 BufferedWriter (java.io.BufferedWriter)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 StringWriter (java.io.StringWriter)1 TestCase (junit.framework.TestCase)1