powered by
Function to test if object returning/printing a string matches with a specified string
expect_complexity_class(object, complexity.class)
The argument which returns a string to be tested against the expected string
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/
# NOT RUN { # Testing for equality of two string objects (denoting complexity classes): expect_complexity_class("linear", "linear") # }
Run the code above in your browser using DataLab