expect_complexity_class: Expected Complexity Class test function

View source: R/expect_complexity_class.R

expect_complexity_classR Documentation

Expected Complexity Class test function

Description

Function to test if object returning/printing a string matches with a specified string

Usage

expect_complexity_class(object, complexity.class)

Arguments

object

The argument which returns a string to be tested against the expected string

complexity.class

A string denoting the expected complexity class

Details

For more information regarding its implementation or functionality/usage, please check https://anirban166.github.io//Testing-functions/

Value

null for expected complexity, else throws error.

Examples

# Testing for equality of two string objects (denoting complexity classes):
expect_complexity_class("linear", "linear")

Anirban166/testComplexity documentation built on Sept. 17, 2024, 11:06 a.m.