Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /promptdriven_pdd /tests /fixtures /test_simple_math.py
| import pytest | |
| from simple_math import add | |
| def test_add_positive_numbers(): | |
| assert add(2, 3) == 5 | |
| def test_add_negative_numbers(): | |
| assert add(-4, -6) == -10 | |
| def test_add_mixed_sign_numbers(): | |
| assert add(-4, 6) == 2 | |
| def test_add_zero(): | |
| assert add(0, 0) == 0 | |
| def test_add_non_numbers_raises_type_error(): | |
| with pytest.raises(TypeError): | |
| add(2, "3") | |
Xet Storage Details
- Size:
- 385 Bytes
- Xet hash:
- d357ffa61a20a9f6db35cd6d32ef97f4f0c65330fe1ab02c94ed5f46d4638673
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.