TestDrivenCode.com

About this site

Sometimes, writing tests is easier than writing the actual implementation.

Submit your test cases below and let others solve your problems for you!

Submit a new problem

Title
Test Code
assert add(1, 2) == 3 assert add(-1, 1) == 0 assert add(0, 0) == 0
Function Signature
Must start with "def functionname"
Additional Options
Description
Secret Test Code
This code will not be shown to other users.
Hide Solutions Until
Solutions will be hidden from other users until this date.
(UTC timezone, currently: 2026-02-01 23:00:43).