diff options
| author | reger <reger18@arcor.de> | 2015-03-15 03:37:32 +0100 |
|---|---|---|
| committer | reger <reger18@arcor.de> | 2015-03-15 03:37:32 +0100 |
| commit | 7120ea42f1cd2afa70ff4292b5c6d6852750399f (patch) | |
| tree | 5546c9e2f98db0dfc4e0986b24512e35bd92c654 /test/net | |
| parent | 1d81bd0687674c31482ccd52ba2d291b3cb9346e (diff) | |
fix for path with char code > 255
(causing index out of bound exception)
+ test cas for it
Diffstat (limited to 'test/net')
| -rw-r--r-- | test/net/yacy/cora/document/id/MultiProtocolURLTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java b/test/net/yacy/cora/document/id/MultiProtocolURLTest.java index c29b9700b..e4ccb9abd 100644 --- a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java +++ b/test/net/yacy/cora/document/id/MultiProtocolURLTest.java @@ -152,7 +152,9 @@ public class MultiProtocolURLTest { // teststring , expectedresult new String[]{"http://www.heise.de/newsticker/thema/%23saukontrovers", "http://www.heise.de/newsticker/thema/%23saukontrovers"}, // http://mantis.tokeek.de/view.php?id=519 new String[]{"http://www.heise.de/newsticker/thema/#saukontrovers", "http://www.heise.de/newsticker/thema/"}, - new String[]{"http://www.liferay.com/community/wiki/-/wiki/Main/Wiki+Portlet", "http://www.liferay.com/community/wiki/-/wiki/Main/Wiki+Portlet"} // http://mantis.tokeek.de/view.php?id=559 + new String[]{"http://www.liferay.com/community/wiki/-/wiki/Main/Wiki+Portlet", "http://www.liferay.com/community/wiki/-/wiki/Main/Wiki+Portlet"}, // http://mantis.tokeek.de/view.php?id=559 + new String[]{"http://de.wikipedia.org/wiki/Philippe_Ariès", "http://de.wikipedia.org/wiki/Philippe_Ari%E8s"} // utf-8 2 byte char + // new String[]{"http://de.wikipedia.org/wiki/Philippe_Ariès", "http://de.wikipedia.org/wiki/Philippe_Ari%C3%A8s"} // above formal correct for utf8 codepage }; for (String[] testString : testStrings) { |
