Skip to content

Commit

Permalink
fixed language dependant test
Browse files Browse the repository at this point in the history
  • Loading branch information
hneemann committed Jun 28, 2016
1 parent 3bd7afe commit 3b87d63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 6 additions & 2 deletions src/test/java/de/neemann/digital/builder/PinMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand All @@ -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", );*/
}
}

0 comments on commit 3b87d63

Please sign in to comment.