cmake_test/asserts/regex_equal

cmake_test/asserts/regex_equal.ct_assert_regex_equal(var regex)

Asserts that the contents of the provided variable matches the given regular expression.

var must be a non-empty string, otherwise an ASSERTION_FAILED exception is raised.

Parameters:
  • var (str*) – The variable to apply the RegEx to.

  • regex (str) – The RegEx to apply to var.

cmake_test/asserts/regex_equal.ct_assert_regex_not_equal(var regex)

Asserts that the contents of the provided variable don’t match the given regular expression.

var must be a non-empty string, otherwise an ASSERTION_FAILED exception is raised.

Parameters:
  • var (str*) – The variable to apply the regex to.

  • regex (str) – The regex to apply.