Skip to main content

turso_assert_less_than

Macro turso_assert_less_than 

Source
turso_assert_less_than!() { /* proc-macro */ }
Expand description

Asserts that left < right, providing richer comparison information to Antithesis than a plain turso_assert!(a < b).

§Behavior

  • Without antithesis feature: behaves like assert!(left < right, ...).
  • With antithesis feature: reports to Antithesis, then on failure prints the error and calls std::process::exit(0).

§Parameters

  • left, right — operands to compare.
  • "message" (optional) — auto-generated as "left < right" if omitted.
  • { "key": value, ... } (optional) — structured details.

§Usage

turso_assert_less_than!(left, right);
turso_assert_less_than!(left, right, "message");
turso_assert_less_than!(left, right, "message", { "key": value });