diff --git a/src/module/__pycache__/__init__.cpython-311.pyc b/src/module/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 9634425..0000000 Binary files a/src/module/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/src/module/__pycache__/ashcount.cpython-311.pyc b/src/module/__pycache__/ashcount.cpython-311.pyc deleted file mode 100644 index e1590cc..0000000 Binary files a/src/module/__pycache__/ashcount.cpython-311.pyc and /dev/null differ diff --git a/test/test_somthing.py b/test/test_somthing.py new file mode 100644 index 0000000..1e8ed45 --- /dev/null +++ b/test/test_somthing.py @@ -0,0 +1,26 @@ +import os +import sys + +path = os.path.join(os.getcwd(), "src") + +sys.path.append(path) + +from module.ashcount import counter , py_counter + +def test_counter1(): + assert counter.line_counter("./Testing_Files/Temp.txt") == 4 + +def test_counter2(): + assert counter.counting_main_lines(path="./Testing_Files/Temp.txt") == 2 + +def test_counter3(): + assert counter.word_count(path="./Testing_Files/Temp.txt") == 11 + +def test_py_counter4(): + assert py_counter.python_line_count(path="./Testing_Files/Temp.py") == 8 + +def test_py_counter4(): + assert py_counter.python_comment_count(path="./Testing_Files/Temp.py") == 2 + +def test_py_counter4(): + assert py_counter.pure_python_code(path="./Testing_Files/Temp.py") == 3 diff --git a/tests/__pycache__/test_somthing.cpython-311-pytest-7.4.2.pyc b/tests/__pycache__/test_somthing.cpython-311-pytest-7.4.2.pyc deleted file mode 100644 index 7299e3c..0000000 Binary files a/tests/__pycache__/test_somthing.cpython-311-pytest-7.4.2.pyc and /dev/null differ diff --git a/tests/test_somthing.py b/tests/test_somthing.py deleted file mode 100644 index b3ada94..0000000 --- a/tests/test_somthing.py +++ /dev/null @@ -1,26 +0,0 @@ -# import os -# import sys - -# path = os.path.join(os.getcwd(), "src") - -# sys.path.append(path) - -# from module.ashcount import counter , py_counter - -def tset_counter1(): - assert 1 == 1 - -# def tset_counter2(): -# assert counter.counting_main_lines(path="./Testing_Files/Temp.txt") == 2 - -# def tset_counter3(): -# assert counter.word_count(path="./Testing_Files/Temp.txt") == 11 - -# def tset_py_counter4(): -# assert py_counter.python_line_count(path="./Testing_Files/Temp.py") == 8 - -# def tset_py_counter4(): -# assert py_counter.python_comment_count(path="./Testing_Files/Temp.py") == 2 - -# def tset_py_counter4(): -# assert py_counter.pure_python_code(path="./Testing_Files/Temp.py") == 3