tests/testthat/test-Testing-function-existance.R

test_that("multiplication works", {
        # Expect the existance of a function to change the pairs in the database, updating the quantity
  expect_true(exists("inv_ChangePairs"))
        # Expect the existance of a function to import a set of required quantities in a recipe, along with instructions
  expect_true(exists("inv_CheckRecipe"))
        # Expect the existance of a function to display the inventory
  expect_true(exists("inv_PrintInventory"))
        # Expect the existance of a function to generate a viable reciple from the inventory
  expect_true(exists("inv_SelectRecipe"))
        # Expect the existance of a function to produce the yaml compatible form of the input
  expect_true(exists("inv_ConvertToYAML"))
        # Expect the existance of a function to extract the units from the YAML form
  expect_true(exists("inv_ConvertFromYAML"))
})
JDOsborne1/inventoRy documentation built on May 6, 2020, 9:29 a.m.