Skip to content

Commit e82d4d7

Browse files
committed
update some about tree
1 parent ff9ccb7 commit e82d4d7

27 files changed

+45
-14
lines changed

Diff for: Pipfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[[source]]
2+
url = "https://pypi.python.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
8+
[dev-packages]
9+
10+
[requires]
11+
python_version = "3.6"

Diff for: Pipfile.lock

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: Search/test_search.py renamed to algorithm/search/test_search.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ def wrapper(*args, **kw):
3434
class TestSearch(TestCase):
3535
@search_log
3636
def test_linear_search(self, arr, key):
37-
from Search.linear_search import linear_search
37+
from search.linear_search import linear_search
3838
if not key == linear_search(arr, key):
3939
self.fail()
4040

4141
@search_log
4242
def test_binary_search_while(self, arr, key):
43-
from Search.binary_search import binary_search_while
43+
from search.binary_search import binary_search_while
4444
if not key == binary_search_while(arr, key):
4545
self.fail()
4646

4747
@search_log
4848
def test_binary_search_re(self, arr, key):
49-
from Search.binary_search import binary_search_re
49+
from search.binary_search import binary_search_re
5050
if not key == binary_search_re(arr, key):
5151
self.fail()
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.
File renamed without changes.
File renamed without changes.

Diff for: Sort/test_sort.py renamed to algorithm/sort/test_sort.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,61 +39,61 @@ def wrapper(*args, **kw):
3939
class TestSort(TestCase):
4040
@log_sort
4141
def test_bubble_sort(self, arr):
42-
from Sort.bubble_sort import bubble_sort
42+
from sort.bubble_sort import bubble_sort
4343
if not sorted(arr) == bubble_sort(arr):
4444
self.fail()
4545

4646
@log_sort
4747
def test_bubble_sort_flag(self, arr):
48-
from Sort.bubble_sort import bubble_sort_flag
48+
from sort.bubble_sort import bubble_sort_flag
4949
if not sorted(arr) == bubble_sort_flag(arr):
5050
self.fail()
5151

5252
@log_sort
5353
def test_heap_sort(self, arr):
54-
from Sort.heap_sort import heap_sort
54+
from sort.heap_sort import heap_sort
5555
if not sorted(arr) == heap_sort(arr):
5656
self.fail()
5757

5858
@log_sort
5959
def test_insert_sort(self, arr):
60-
from Sort.insert_sort import insert_sort
60+
from sort.insert_sort import insert_sort
6161
if not sorted(arr) == insert_sort(arr):
6262
self.fail()
6363

6464
@log_sort
6565
def test_merge_sort(self, arr):
66-
from Sort.marge_sort import merge_sort
66+
from sort.marge_sort import merge_sort
6767
if not sorted(arr) == merge_sort(arr):
6868
self.fail()
6969

7070
@log_sort
7171
def test_quick_sort(self, arr):
72-
from Sort.quick_sort import quick_sort
72+
from sort.quick_sort import quick_sort
7373
if not sorted(arr) == quick_sort(arr):
7474
self.fail()
7575

7676
@log_sort
7777
def test_quick_sort_cookbook(self, arr):
78-
from Sort.quick_sort import quick_sort_cookbook
78+
from sort.quick_sort import quick_sort_cookbook
7979
if not sorted(arr) == quick_sort_cookbook(arr):
8080
self.fail()
8181

8282
@log_sort
8383
def test_selection_sort(self, arr):
84-
from Sort.selection_sort import selection_sort
84+
from sort.selection_sort import selection_sort
8585
if not sorted(arr) == selection_sort(arr):
8686
self.fail()
8787

8888
@log_sort
8989
def test_shell_sort(self, arr):
90-
from Sort.shell_sort import shell_sort
90+
from sort.shell_sort import shell_sort
9191
if not sorted(arr) == shell_sort(arr):
9292
self.fail()
9393

9494
@log_sort
9595
def test_count_sort(self, arr):
96-
from Sort.count_sort import count_sort
96+
from sort.count_sort import count_sort
9797
if len(arr) == 0:
9898
if not sorted(arr) == count_sort(arr):
9999
self.fail()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: data_structure/tree/__init__.py

Whitespace-only changes.

Diff for: DataStructure/tree/BinaryTree.py renamed to data_structure/tree/binary_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from DataStructure.tree.Tree import Tree
1+
from data_structure.tree.Tree import Tree
22

33

44
class BinaryTree(Tree):
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)