Crate koto_test_utils

Source
Expand description

Testing utilities for Koto crates

Structs§

OutputCapture
Captures output from Koto in a String

Functions§

check_script_output
Runs a script and validates its output
check_script_output_with_vm
Runs a script and validates its output using a provided Vm
list
Returns a KValue::List from a slice of KValues
number_list
Returns a KValue::List from a slice of integers
number_tuple
Returns a KValue::Tuple from a slice of integers
range
Returns a KValue::Range from given bounds
run_koto_examples_in_markdown
Runs Koto code examples found in a markdown document
run_test_script
Runs a script using the provided Vm, optionally checking its output
script_instructions
Renders a script to a string with its corresponding compiled instructions
tuple
Returns a KValue::Tuple from a slice of KValues