Make an assertion that actual is less than expected. If not then throw.
actual
expected
The type of the values to compare.
The actual value to compare.
The expected value to compare.
Optional
The optional message to display if the assertion fails.
import { assertLess } from "@std/assert";assertLess(1, 2); // Doesn't throwassertLess(2, 1); // Throws Copy
import { assertLess } from "@std/assert";assertLess(1, 2); // Doesn't throwassertLess(2, 1); // Throws
Make an assertion that
actualis less thanexpected. If not then throw.