<<
path:
root/public/0x2lib.git/html/tests/assertion.jai
blob: 7f3c5decc5d2c9f5e8c7db0014c1d30742ed48c0
[raw]
[clear marker]
4 log_error("\n%: Test failed", loc);
5 log_error("-------------------");
6 log_error(":Subject A\n%\n\n", a);
7 log_error(":Subject B\n%\n\n", b);
12ass :: (comp: bool, loc := #caller_location) #expand {
14 log_error("\n%: Test failed", loc);
19ass :: (a: $T, b: T, $code := ASS_CODE, loc := #caller_location) #expand {
25/** Cannot use `[]$T, []T` here, because Jai cannot resolve the overloads then */
26ass :: (a: []int, b: []int, $code := ASS_CODE, loc := #caller_location) #expand {
27 if a.count != b.count {
31 for a if it != b[it_index] {
40using,only(log_error) Basic :: #import "Basic";