Commit pending changes: check-recipes tool and reconstructed test file
This commit is contained in:
@@ -373,9 +373,9 @@ spec = do
|
||||
Left err -> expectationFailure ("parse failed: " <> err)
|
||||
Right recipe -> do
|
||||
let items = stepItems recipe
|
||||
items `shouldBe`
|
||||
[ StepIngredient (Ingredient "water" (Just (Quantity (3 % 2) (Just "cups") False)) Nothing)
|
||||
]
|
||||
items
|
||||
`shouldBe` [ StepIngredient (Ingredient "water" (Just (Quantity (3 % 2) (Just "cups") False)) Nothing)
|
||||
]
|
||||
|
||||
it "parses quantity with trailing unit (no %)" $ do
|
||||
let input = "@gelatine{3tsp}"
|
||||
@@ -383,9 +383,9 @@ spec = do
|
||||
Left err -> expectationFailure ("parse failed: " <> err)
|
||||
Right recipe -> do
|
||||
let items = stepItems recipe
|
||||
items `shouldBe`
|
||||
[ StepIngredient (Ingredient "gelatine" (Just (Quantity 3 (Just "tsp") False)) Nothing)
|
||||
]
|
||||
items
|
||||
`shouldBe` [ StepIngredient (Ingredient "gelatine" (Just (Quantity 3 (Just "tsp") False)) Nothing)
|
||||
]
|
||||
|
||||
describe "Recipe references" $ do
|
||||
it "parses a recipe reference" $ do
|
||||
|
||||
Reference in New Issue
Block a user