-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6e184e
commit 9e5f3a3
Showing
5 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file was deleted.
Oops, something went wrong.