expect_complexity_class.Rd
Function to test if object returning/printing a string matches with a specified string
expect_complexity_class(object, complexity.class)
object | The argument which returns a string to be tested against the expected string |
---|---|
complexity.class | A string denoting the expected complexity class |
null for expected complexity, else throws error.
For more information regarding its implementation or functionality/usage, please check https://anirban166.github.io//Testing-functions/
# Testing for equality of two string objects (denoting complexity classes): expect_complexity_class("linear", "linear")