-
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
ashkan0201
committed
Oct 4, 2023
1 parent
1092cf6
commit 51b6e8d
Showing
8 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
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
Binary file not shown.
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,8 @@ | ||
# For test. | ||
""" | ||
For test. | ||
""" | ||
print("For test.") | ||
|
||
for i in range(10): | ||
print("For test") |
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,4 @@ | ||
Hello, I am Ashkan, a programmer. | ||
|
||
|
||
This part is for testing. |
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 tset_counter1(): | ||
# assert counter.line_counter(path="./test/t_t.txt") == 4 | ||
|
||
# def tset_counter2(): | ||
# assert counter.counting_main_lines(path="./test/t_t.txt") == 2 | ||
|
||
# def tset_counter3(): | ||
# assert counter.word_count(path="./test/t_t.txt") == 11 | ||
|
||
def tset_counter4(): | ||
assert py_counter.python_line_count(path="./test/p_t.py") == 8 | ||
|
||
def tset_counter5(): | ||
assert py_counter.python_comment_count(path="./test/p_t.py") == 2 | ||
|
||
def tset_counter6(): | ||
assert py_counter.pure_python_code(path="./test/p_t.py") == 3 |
This file was deleted.
Oops, something went wrong.