Skip to content

Commit

Permalink
issue #16: ¡ und ¿ werde als druckbares Zeichen erkannt
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli B committed Jul 3, 2022
1 parent bbd9c4d commit d3974f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/de/jfachwert/printable.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~§¥₫₩£₹₪฿€
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~§¥₫₩£₹₪฿€¡¿
6 changes: 6 additions & 0 deletions src/test/java/de/jfachwert/TextTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ public void testIsPrintableSonderzeichen() {
assertTrue(Text.of("P\u00e4ragraph § 218.").isPrintable());
}

@Test
public void testIsPrintableSpanischeZeichen() {
Text x = Text.of("Por qu\u00e9 el espa\u00f1ol es el \u00fanico idioma que utiliza signos de interrogaci\u00f3n (\u00bf?) y admiraci\u00f3n (\u00a1!) dobles.");
assertTrue(x.isPrintable());
}

@Test
public void testIsPrintableCurrencies() {
for (Currency c : Currency.getAvailableCurrencies()) {
Expand Down

0 comments on commit d3974f0

Please sign in to comment.