fixed typo

This commit is contained in:
pinpong 2016-11-30 21:28:01 +01:00
parent 606dc34c4b
commit 23ca1354e9
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ public enum IotaUnits {
KILO_IOTA("Ki", 3),
MEGA_IOTA("Mi", 6),
GIGA_IOTA("Gi", 9),
TERRA_IOTA("Ti", 12),
TERA_IOTA("Ti", 12),
PETA_IOTA("Pi", 15);
private String unit;

View File

@ -29,11 +29,11 @@ public class IotaUnitConverterTest {
@Test
public void shouldConvertUnitGiToTi() {
assertThat(IotaUnitConverter.convertUnits(1000, IotaUnits.GIGA_IOTA, IotaUnits.TERRA_IOTA), IsNull.notNullValue());
assertThat(IotaUnitConverter.convertUnits(1000, IotaUnits.GIGA_IOTA, IotaUnits.TERA_IOTA), IsNull.notNullValue());
}
@Test
public void shouldConvertUnitTiToPi() {
assertThat(IotaUnitConverter.convertUnits(1000, IotaUnits.TERRA_IOTA, IotaUnits.PETA_IOTA), IsNull.notNullValue());
assertThat(IotaUnitConverter.convertUnits(1000, IotaUnits.TERA_IOTA, IotaUnits.PETA_IOTA), IsNull.notNullValue());
}
}