View source: R/expect_complexity_class.R
expect_complexity_class | R Documentation |
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 |
For more information regarding its implementation or functionality/usage, please check https://anirban166.github.io//Testing-functions/
null for expected complexity, else throws error.
# Testing for equality of two string objects (denoting complexity classes):
expect_complexity_class("linear", "linear")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.