fix: test fix after changes
This commit is contained in:
parent
91997ae251
commit
e3e176939c
1 changed files with 9 additions and 9 deletions
|
|
@ -13,8 +13,8 @@ class FormalIngredientTest {
|
||||||
FormalIngredient toTonne = new FormalIngredient(ingredient,1_000_000,"g");
|
FormalIngredient toTonne = new FormalIngredient(ingredient,1_000_000,"g");
|
||||||
|
|
||||||
|
|
||||||
assertEquals(toKg.normalisedUnit(),"1.0kg");
|
assertEquals(toKg.normalisedUnit(),"1.00kg");
|
||||||
assertEquals(toTonne.normalisedUnit(),"1.0t");
|
assertEquals(toTonne.normalisedUnit(),"1.00t");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -22,7 +22,7 @@ class FormalIngredientTest {
|
||||||
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
||||||
FormalIngredient toKg = new FormalIngredient(ingredient,1_000,"ml");
|
FormalIngredient toKg = new FormalIngredient(ingredient,1_000,"ml");
|
||||||
|
|
||||||
assertEquals(toKg.normalisedUnit(),"1.0l");
|
assertEquals(toKg.normalisedUnit(),"1.00l");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -30,7 +30,7 @@ class FormalIngredientTest {
|
||||||
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
||||||
FormalIngredient toPound = new FormalIngredient(ingredient,16,"oz");
|
FormalIngredient toPound = new FormalIngredient(ingredient,16,"oz");
|
||||||
|
|
||||||
assertEquals(toPound.normalisedUnit(),"1.0lb");
|
assertEquals(toPound.normalisedUnit(),"1.00lb");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -40,9 +40,9 @@ class FormalIngredientTest {
|
||||||
FormalIngredient toPound = new FormalIngredient(ingredient,32,"tbsp");
|
FormalIngredient toPound = new FormalIngredient(ingredient,32,"tbsp");
|
||||||
FormalIngredient toOunce = new FormalIngredient(ingredient,2,"tbsp");
|
FormalIngredient toOunce = new FormalIngredient(ingredient,2,"tbsp");
|
||||||
|
|
||||||
assertEquals(toCup.normalisedUnit(),"1.0cup(s)");
|
assertEquals(toCup.normalisedUnit(),"1.00cup(s)");
|
||||||
assertEquals(toPound.normalisedUnit(),"1.0lb");
|
assertEquals(toPound.normalisedUnit(),"1.00lb");
|
||||||
assertEquals(toOunce.normalisedUnit(),"1.0oz");
|
assertEquals(toOunce.normalisedUnit(),"1.00oz");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -52,7 +52,7 @@ class FormalIngredientTest {
|
||||||
FormalIngredient informal = new FormalIngredient(ingredient,10,"<NONE>");
|
FormalIngredient informal = new FormalIngredient(ingredient,10,"<NONE>");
|
||||||
FormalIngredient toSmall = new FormalIngredient(ingredient,10,"g");
|
FormalIngredient toSmall = new FormalIngredient(ingredient,10,"g");
|
||||||
|
|
||||||
assertEquals(informal.normalisedUnit(),"10.0<NONE>");
|
assertEquals(informal.normalisedUnit(),"10.00<NONE>");
|
||||||
assertEquals(toSmall.normalisedUnit(),"10.0g");
|
assertEquals(toSmall.normalisedUnit(),"10.00g");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue