102_testing.patch 233 B

12345678
  1. 86c86
  2. < try testing.expect(sub(10, 5) == 6);
  3. ---
  4. > try testing.expect(sub(10, 5) == 5);
  5. 111c111
  6. < try testing.expectError(error.???, divide(15, 0));
  7. ---
  8. > try testing.expectError(error.DivisionByZero, divide(15, 0));