3.2.10.py 157 B

123456
  1. def test_abs1():
  2. assert abs(-42) == 42, "Should be absolute value of a number"
  3. if __name__ == "__main__":
  4. test_abs1()
  5. print("All tests passed!")