Skip to content

Commit ba6f8e9

Browse files
committed
feat: reorganize directories/files
1 parent e11a41a commit ba6f8e9

21 files changed

+6
-6
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/bigger_is_greater/test/test_biggers_is_greater.py renamed to src/tests/test_biggers_is_greater.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import bigger_is_greater
1+
from ..bigger_is_greater import main
22
import sys
33
import glob
44
import os
55
import tempfile
66

77

88
def test_answer():
9-
files = glob.glob(os.path.dirname(__file__) + "/*.input")
9+
files = glob.glob(os.path.dirname(__file__) + "/biggers-is-greater-*.input")
1010
for input_file in files:
1111
print(input_file)
1212
output_file = input_file.replace(".input", ".output")
1313
sys.stdin = open(input_file)
1414
with tempfile.NamedTemporaryFile(
1515
mode="w+t", encoding="utf-8", delete=True, delete_on_close=True
1616
) as temp_file:
17-
bigger_is_greater.main(temp_file.file)
17+
main(temp_file.file)
1818
temp_file.file.seek(0)
1919
with open(output_file, mode="r+t", encoding="utf-8") as output_file:
2020
assert (

0 commit comments

Comments
 (0)