Skip to content

Commit 7cbfb81

Browse files
committed
Remove CDLL stuff since we don't need it
1 parent 9287755 commit 7cbfb81

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

calculator/tests/calculator_adapter.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
import ctypes
21
import subprocess
32
import os
43
from collections import namedtuple
54
from os import path
65

76
root_dir = path.join(path.dirname(__file__), "..")
8-
calculator = ctypes.CDLL(path.join(root_dir, "calculator.so"))
97

108
Status = namedtuple('Status', ['exit_status', 'output'])
119

12-
def add(a: int, b: int) -> int:
13-
return calculator.add(a, b)
14-
15-
def subtract(a: int, b: int) -> int:
16-
return calculator.subtract(a, b)
17-
18-
def multiply(a: int, b: int) -> int:
19-
return calculator.multiply(a, b)
20-
21-
def divide(a: int, b: int) -> int:
22-
return calculator.divide(a, b)
23-
2410
def run(equation: str) -> Status:
2511
if os.getenv("OUTPUT_RUNS") is not None:
2612
print("TEST RUN:", equation)

0 commit comments

Comments
 (0)