diff options
Diffstat (limited to 'wqflask/tests/unit')
-rw-r--r-- | wqflask/tests/unit/wqflask/show_trait/test_get_max_digits.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/wqflask/tests/unit/wqflask/show_trait/test_get_max_digits.py b/wqflask/tests/unit/wqflask/show_trait/test_get_max_digits.py new file mode 100644 index 00000000..509f6c3a --- /dev/null +++ b/wqflask/tests/unit/wqflask/show_trait/test_get_max_digits.py @@ -0,0 +1,13 @@ +import pytest + +from wqflask.show_trait.show_trait import get_max_digits + +@pytest.mark.parametrize( + "trait_vals,expected", + ((( + (0, 1345, 92, 734), + (234253, 33, 153, 5352), + (3542, 24, 135)), + [3, 5, 3]),)) +def test_get_max_digits(trait_vals, expected): + assert get_max_digits(trait_vals) == expected |