diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-27 23:53:08 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-27 23:53:08 -0700 |
commit | 4411dc39c1ec51bfc96c4059aa555313e825c2f7 (patch) | |
tree | f88425c9c5b407d53cc49645e13ebbb52c9fb455 /extension/examples/tests/test_main.py | |
parent | 55e231b4f51f47757ab5840363fbc097d6ebf6e5 (diff) | |
download | sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.tar.gz sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.tar.bz2 sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.zip |
v73 was too large, removing examples, .vscignore
Diffstat (limited to 'extension/examples/tests/test_main.py')
-rw-r--r-- | extension/examples/tests/test_main.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/extension/examples/tests/test_main.py b/extension/examples/tests/test_main.py deleted file mode 100644 index ff952dd8..00000000 --- a/extension/examples/tests/test_main.py +++ /dev/null @@ -1,39 +0,0 @@ - -import pytest - -from ..calculator import Calculator - - -@pytest.fixture -def calculator(): - return Calculator() - - -def test_add(calculator): - assert calculator.add(2, 3) == 5 - assert calculator.add(10, -2) == 8 - assert calculator.add(0, 0) == 0 - - -def test_sub(calculator): - assert calculator.sub(2, 3) == -1 - assert calculator.sub(10, -2) == 12 - assert calculator.sub(0, 0) == 0 - - -def test_mul(calculator): - assert calculator.mul(2, 3) == 6 - assert calculator.mul(10, -2) == -20 - assert calculator.mul(0, 0) == 0 - - -def test_div(calculator): - assert calculator.div(2, 3) == 0.6666666666666666 - assert calculator.div(10, -2) == -5 - assert calculator.div(0, 1) == 0 - - -def test_exp(calculator): - assert calculator.exp(2, 3) == 8 - assert calculator.exp(10, -2) == 0.01 - assert calculator.exp(0, 0) == 1 |