Test: Bytes.toStr()

This commit is contained in:
Neels Hofmeyr 2020-02-25 03:26:23 +01:00
parent 483f5a4f74
commit b5ca312419
1 changed files with 12 additions and 0 deletions

View File

@ -57,7 +57,19 @@ public class Test {
}
}
private static void test_toStr()
{
byte nr = -128;
while (true) {
System.out.println("" + nr + " = '" + new String(Bytes.toStr(nr)) + "'");
if (nr == 127)
break;
nr++;
}
}
public static void main(String args[]){
test_str2mi2str();
test_toStr();
}
}