feat: Demo-Examples (Python/Rust/Go/C) mit Protokoll-Templates und Restore-Skript
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fb4e96919a
commit
64c2b7f0fd
21 changed files with 614 additions and 0 deletions
18
examples/python-calculator/test_calculator.py
Normal file
18
examples/python-calculator/test_calculator.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import pytest
|
||||
from calculator import add, subtract
|
||||
|
||||
|
||||
def test_add_positive():
|
||||
assert add(2, 3) == 5
|
||||
|
||||
def test_add_negative():
|
||||
assert add(-1, 1) == 0
|
||||
|
||||
def test_add_zero():
|
||||
assert add(0, 0) == 0
|
||||
|
||||
def test_subtract_basic():
|
||||
assert subtract(5, 3) == 2
|
||||
|
||||
def test_subtract_negative_result():
|
||||
assert subtract(3, 5) == -2
|
||||
Loading…
Add table
Add a link
Reference in a new issue