mirror of
https://github.com/yweber/lodel2.git
synced 2026-06-16 15:30:49 +02:00
Code factorization on EmComponent.modify_rank()
Changed beahvior : when a 'non-change' is asked (like +0 -0 or set ranke to actual rank) don't raise an Error
This commit is contained in:
parent
f41d164603
commit
49dfe9ad03
2 changed files with 64 additions and 132 deletions
|
|
@ -629,10 +629,6 @@ class TestModifyRank(ComponentTestCase):
|
|||
((0.0, '='), TypeError),
|
||||
|
||||
#Bad new_rank
|
||||
((0,'+'), ValueError),
|
||||
((0,'-'), ValueError),
|
||||
((-1, '+'), ValueError),
|
||||
((-1,'-'), ValueError),
|
||||
((-1, '='), ValueError),
|
||||
((-1,), ValueError),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue