Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkan0201 committed Oct 4, 2023
1 parent 1092cf6 commit 51b6e8d
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"python.testing.pytestArgs": [
"test"
"src"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
Expand Down
Binary file added src/module/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added src/module/__pycache__/ashcount.cpython-38.pyc
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions test/p_t.py
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")
4 changes: 4 additions & 0 deletions test/t_t.txt
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.
26 changes: 26 additions & 0 deletions test/test_ashcount.py
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
26 changes: 0 additions & 26 deletions test/test_somthing.py

This file was deleted.

0 comments on commit 51b6e8d

Please sign in to comment.