diff --git a/README.md b/README.md index 75c645cad..a93cae5d7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -![Build Status](https://travis-ci.org/hneemann/Digital.svg?branch=master) +[![Build Status](https://travis-ci.org/hneemann/Digital.svg?branch=master)](https://travis-ci.org/hneemann/Digital) -# Digital # +# Digital # Digital is a simulator for digital circuits. It is designed for educational purposes and is used by me in my lectures. diff --git a/src/test/java/de/neemann/digital/builder/PinMapTest.java b/src/test/java/de/neemann/digital/builder/PinMapTest.java index 8f98b0f41..544afa55f 100644 --- a/src/test/java/de/neemann/digital/builder/PinMapTest.java +++ b/src/test/java/de/neemann/digital/builder/PinMapTest.java @@ -140,10 +140,14 @@ public void testAliasInput() throws PinMapException { } - // ToDo: fails if language is not german! public void testToString() throws PinMapException { pinMap.assignPin("A", 1); pinMap.assignPin("B", 4); + String pinStr=pinMap.toString(); + + assertTrue(pinStr.contains("Pin 1: A\n")); + assertTrue(pinStr.contains("Pin 4: B\n")); + /* assertEquals("Eingänge:\n" + "Pin 1: A\n" + "Pin 2: nicht verwendet\n" + @@ -152,6 +156,6 @@ public void testToString() throws PinMapException { "Ausgänge:\n" + "Pin 4: B\n" + "Pin 5: nicht verwendet\n" + - "Pin 6: nicht verwendet\n", pinMap.toString()); + "Pin 6: nicht verwendet\n", );*/ } } \ No newline at end of file