4 ms·
Because you get way better error reporting. Asserting on a boolean is just pass/fail, but with expect the runner tells you "got X, expected Y" which is way bett
by hashkb 10y ago
Because you get way better error reporting. Asserting on a boolean is just pass/fail, but with expect the runner tells you "got X, expected Y" which is way better.