fixed weird spacing

This commit is contained in:
Oskar Rasieński 2026-01-14 19:36:27 +01:00
commit e4fd15b120

View file

@ -9,7 +9,6 @@ import java.util.Map;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
public class RecipeIngredientTest { public class RecipeIngredientTest {
private Map<String, FormalIngredient> ingredientUnitMap; private Map<String, FormalIngredient> ingredientUnitMap;
private Map<String, VagueIngredient> ingredientDescriptorMap; private Map<String, VagueIngredient> ingredientDescriptorMap;
@ -17,12 +16,14 @@ public class RecipeIngredientTest {
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3); Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
return new FormalIngredient(ingredient, 1.0, unit); return new FormalIngredient(ingredient, 1.0, unit);
} }
private VagueIngredient getVague(String descriptor) { private VagueIngredient getVague(String descriptor) {
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3); Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
return new VagueIngredient(ingredient, descriptor); return new VagueIngredient(ingredient, descriptor);
} }
@BeforeEach @BeforeEach
void setup(){ void setup() {
ingredientUnitMap = new HashMap<>(); ingredientUnitMap = new HashMap<>();
ingredientDescriptorMap = new HashMap<>(); ingredientDescriptorMap = new HashMap<>();
List.of("g", "kg", "ml", "l", "tbsp", "cup") List.of("g", "kg", "ml", "l", "tbsp", "cup")
@ -37,6 +38,7 @@ public class RecipeIngredientTest {
FormalIngredient fi = new FormalIngredient(ingredient, 1.0, "g"); FormalIngredient fi = new FormalIngredient(ingredient, 1.0, "g");
assertEquals(ingredient, fi.getIngredient()); assertEquals(ingredient, fi.getIngredient());
} }
@Test @Test
void testInstantiateVagueIngredient() { void testInstantiateVagueIngredient() {
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3); Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);