Previous: (veritas shuffle), Up: API
Given a list of functions that don’t take any inputs, run each one of those functions concurrently, and then return a list of what each function returned once they’re all finished.
Undocumented macro.
Undocumented macro.
Undocumented macro.
Undocumented procedure.
Undocumented procedure.
Returns a function taking a VC (veritas-context) that returns an assertion that checks that a thunk (a procedure with no arguments) raises an error when called. This is a crucial function for testing error-handling logic. It attempts to execute the provided thunk. If an error is caught during its execution, the assertion passes. If the thunk completes without raising an error, the assertion fails.
A procedure of no arguments to be executed.
A string to identify the assertion in the logs.
(assert-error (lambda () (sum-list-elements '(1 2 "a" 4))) #:name "Should fail when list contains non-numbers") ⇒ #<procedure 8f58ec5ce390 at veritas/assert.scm:69:2 (vc)> ;; Upon applying vc to the procedure we will compute the assertion: `((assertion-successful . #t) (assertion-name "Should fail when list contains non-numbers"))
Undocumented procedure.
Returns a function taking a VC (veritas-context) that returns an assertion that checks that a thunk (a procedure with no arguments) does not raise an error when called. This is a crucial function for testing error-handling logic. It attempts to execute the provided thunk. If no error is caught during its execution, the assertion passes. If the thunk raises an error, the assertion fails.
A procedure of no arguments to be executed.
A string to identify the assertion in the logs.
(assert-no-error (lambda () (sum-list-elements '(1 2 "a" 4)))) ⇒ #<procedure 8f58ec5ce390 at veritas/assert.scm:69:2 (vc)> ;; Upon applying vc to the procedure we will compute the assertion: `((assertion-successful . #f))
Undocumented procedure.
Undocumented procedure.
Undocumented procedure.
Undocumented procedure.
Returns a randomly shuffled copy of XS.
Undocumented procedure.
Undocumented procedure.
Undocumented procedure.
Previous: (veritas shuffle), Up: API