minor progress

This commit is contained in:
rusefillc 2023-02-11 15:20:10 -05:00
parent cfa80fd7f1
commit 78d51a2461
1 changed files with 10 additions and 6 deletions

View File

@ -14,15 +14,20 @@ import static org.junit.Assert.assertEquals;
public class PinoutLogicIntegratedTest {
@Test
public void testWholeThing() throws IOException {
StringWriter testWriter = new StringWriter();
Reader input = new StringReader("pins:\n" +
runPinputTest("pins:\n" +
" - pin: 1\n" +
" id: [E11, E11]\n" +
" class: [event_inputs, switch_inputs]\n" +
" function: Digital trigger/switch input for instance Hall type CAM\n" +
" ts_name: Digital 2\n" +
" type: din");
" type: din", "");
}
private static void runPinputTest(String inputYaml, String expected) throws IOException {
StringWriter testWriter = new StringWriter();
Reader input = new StringReader(inputYaml);
BoardInputs testBoard = new BoardInputs() {
@Override
@ -67,7 +72,6 @@ public class PinoutLogicIntegratedTest {
//logic.registerBoardSpecificPinNames(registry, definitionState, enumsReader);
// assertEquals("", testWriter.getBuffer().toString());
// assertEquals(expected, testWriter.getBuffer().toString());
}
}