8000 TEST: shorten test · larray-project/larray@8841f9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8841f9b

Browse files
committed
TEST: shorten test
1 parent 783a70c commit 8841f9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

larray/tests/test_axis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,10 @@ def test_init_from_group():
435435

436436

437437
def test_matching():
438-
sutcode = Axis(['A23', 'A2301', 'A25', 'A2501'], 'sutcode')
439-
assert sutcode.matching(regex='^...$') == LGroup(['A23', 'A25'])
440-
assert sutcode.startingwith('A23') == LGroup(['A23', 'A2301'])
441-
assert sutcode.endingwith('01') == LGroup(['A2301', 'A2501'])
438+
code = Axis(['A1', 'A101', 'A2', 'A201'], 'code')
439+
assert code.matching(regex='^..$') == LGroup(['A1', 'A2'])
440+
assert code.startingwith('A1') == LGroup(['A1', 'A101'])
441+
assert code.endingwith('01') == LGroup(['A101', 'A201'])
442442

443443

444444
def test_iter():

0 commit comments

Comments
 (0)
0