mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-10-04 13:37:00 +00:00
added TrytesConverterTest
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package jota;
|
||||
|
||||
import jota.utils.TrytesConverter;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
* Created by pinpong on 01.12.16.
|
||||
*/
|
||||
public class TrytesConverterTest {
|
||||
|
||||
@Test
|
||||
public void shouldConvertStringToTrytes() {
|
||||
assertEquals(TrytesConverter.toTrytes("Z"), "IC");
|
||||
}
|
||||
@Test
|
||||
public void shouldConvertTrytesToString() {
|
||||
assertEquals(TrytesConverter.toString("IC"), "Z");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user