Skip to content

assert_string

Assert that a resulting string variable from a previous calculation matches the corresponding test string. For example:

foo := structure(
  molecule = water
)
assert_string(
  load = foo
  variable = source
  value = 'structure'
)
This command can appear in the global context.

Options

load

Name of result set to load the variable from.

  • The type is string
  • There is no default value.
name

Name of result set to take the variable from.

This option is deprecated.

  • The type is string
  • The default is previous
value

The reference string that the content of variable shall match.

This option is mandatory.

  • The type is string
  • There is no default value.
variable

Name of variable to be tested for equality with value.

This option is mandatory.

  • The type is string
  • There is no default value.