Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19ca12f

Browse files
committed
Formatting: remove tabs.
1 parent 2ab564b commit 19ca12f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

tests/test_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_distance():
1111

1212

1313
def test_distance2():
14-
assert distance2((1, 2), (5, 5)) == 25.0
14+
assert distance2((1, 2), (5, 5)) == 25.0
1515

1616

1717
def test_vector_clip():

tests/test_learning.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
from learning import parse_csv, weighted_mode, weighted_replicate
33

44
def test_parse_csv():
5-
assert parse_csv('1, 2, 3 \n 0, 2, na') == [[1, 2, 3], [0, 2, 'na']]
5+
assert parse_csv('1, 2, 3 \n 0, 2, na') == [[1, 2, 3], [0, 2, 'na']]
66

77

88
def test_weighted_mode():
9-
assert weighted_mode('abbaa', [1,2,3,1,2]) == 'b'
9+
assert weighted_mode('abbaa', [1,2,3,1,2]) == 'b'
1010

1111

1212
def test_weighted_replicate():
13-
assert weighted_replicate('ABC', [1,2,1], 4) == ['A', 'B', 'B', 'C']
14-
13+
assert weighted_replicate('ABC', [1,2,1], 4) == ['A', 'B', 'B', 'C']

tests/test_nlp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from nlp import *
33

44
def test_rules():
5-
assert Rules(A = "B C | D E") == {'A': [['B', 'C'], ['D', 'E']]}
5+
assert Rules(A = "B C | D E") == {'A': [['B', 'C'], ['D', 'E']]}
66

77

88
def test_lexicon():
9-
assert Lexicon(Art = "the | a | an") == {'Art': ['the', 'a', 'an']}
10-
9+
assert Lexicon(Art = "the | a | an") == {'Art': ['the', 'a', 'an']}

0 commit comments

Comments
 (0)