This is a debug only assertion. If the test is false, it will print any supplied error message to stderr and raise an error.
primitive val Assert
new val create() : Assert val^
fun box apply( test: Bool val, msg: String val = "") : None val ?
fun box eq( that: Assert val) : Bool val
fun box ne( that: Assert val) : Bool val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/assert-Assert