Stak base library
Raise an error
Section titled “Raise an error”Given a file named “main.scm” with:
(import (stak base))
(when (procedure? error) (error "foo"))When I run stak main.scm
Then the exit status should not be 0.
Raise an error with an I/O library
Section titled “Raise an error with an I/O library”Given a file named “main.scm” with:
(import (stak base) (stak io))
(when (procedure? error) (error "foo"))When I run stak main.scm
Then the exit status should not be 0
And the stderr should contain “foo”.