Change new problem script boiler plate

This commit is contained in:
Johan Sandoval
2026-07-22 19:38:50 -05:00
parent e13f7688b6
commit e21dcce46b
+11 -2
View File
@@ -6,7 +6,16 @@ class Solution:
pass
EOF
cat > "$d/solution_test.py" <<'EOF'
import pytest
from solution import Solution
def test_solve():
assert Solution().solve() is None
@pytest.mark.parametrize(
"X,expected",
[
([2, 7, 11, 15], [0, 1]),
],
)
def test_REPLACE(X, expected):
assert Solution().REPLACE(X, expected) == expected
EOF