Commit 67259895 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: update parseColumnName test

parent 2358fc8a
......@@ -40,15 +40,22 @@ def test_parseColumnName():
tests = [
('0-0.0', ( 0, 0, 0)),
('1-1.1', ( 1, 1, 1)),
('10-10.10', (10, 10, 10)),
('1--1.1', ( 1, -1, 1)),
('10--10.10', (10, -10, 10)),
('0-0.0', ( 0, 0, 0)),
('1-1.1', ( 1, 1, 1)),
('10-10.10', (10, 10, 10)),
('1--1.1', ( 1, -1, 1)),
('10--10.10', (10, -10, 10)),
('1-1.ABC', ( 1, 1, 'ABC')),
('1-1.ABC.E', ( 1, 1, 'ABC.E')),
('1-1.ABC E', ( 1, 1, 'ABC E')),
('f.1.1.1', ( 1, 1, 1)),
('f.10.10.10', (10, 10, 10)),
('f.1..1.1', ( 1, -1, 1)),
('f.10..10.10', (10, -10, 10)),
('1.1', ( 1, 0, 1)),
('1.ABC', ( 1, 0, 'ABC')),
('1.ABC.E', ( 1, 0, 'ABC.E')),
('1.ABC E', ( 1, 0, 'ABC E')),
]
for col, exp in tests:
......@@ -61,7 +68,6 @@ def test_parseColumnName():
with pytest.raises(ValueError): util.parseColumnName('10-')
with pytest.raises(ValueError): util.parseColumnName('10-1')
with pytest.raises(ValueError): util.parseColumnName('10-1-2')
with pytest.raises(ValueError): util.parseColumnName('10-1.2.3')
with pytest.raises(ValueError): util.parseColumnName('f.a')
with pytest.raises(ValueError): util.parseColumnName('f.a.b')
with pytest.raises(ValueError): util.parseColumnName('f.a.b.c')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment