Moved some test classes to the test folder

This commit is contained in:
Ziver Koc 2016-04-15 17:13:07 +02:00
parent 6c81d79332
commit ccead35ee7
3 changed files with 15 additions and 5 deletions

View file

@ -59,11 +59,11 @@ public class Converter {
* @return a byte array of four bytes
*/
public static byte[] toBytes(int num){
return new byte[]{
(byte)(num & 0xff),
(byte)((num >> 8)& 0xff),
(byte)((num >> 16)& 0xff),
(byte)((num >> 24)& 0xff)};
return new byte[]{
(byte)((num >> 24)& 0xff),
(byte)((num >> 16)& 0xff),
(byte)((num >> 8)& 0xff),
(byte)(num & 0xff)};
}
/**