diff options
author | William Anderson <william@thewilliamanderson.com> | 2015-08-04 13:39:01 -0400 |
---|---|---|
committer | William Anderson <william@thewilliamanderson.com> | 2015-08-04 13:39:01 -0400 |
commit | 294746c0ea3e3232bc57f65a7af2ae766d868a6f (patch) | |
tree | 73ff80b0182d77fa9e9cb126565b2c7dda916705 | |
parent | d15319c89fc41b62131a382ecb3497959b6c56c1 (diff) | |
download | pyscss-294746c0ea3e3232bc57f65a7af2ae766d868a6f.tar.gz |
Adds test for str_slice edge cases
-rw-r--r-- | scss/tests/extension/test_core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scss/tests/extension/test_core.py b/scss/tests/extension/test_core.py index 8c26aef..7151c76 100644 --- a/scss/tests/extension/test_core.py +++ b/scss/tests/extension/test_core.py @@ -277,6 +277,9 @@ def test_str_slice(): assert calc('str-slice("abcd", 2)') == calc('"bcd"') assert calc('str-slice("abcd", -3, -2)') == calc('"bc"') assert calc('str-slice("abcd", 2, -2)') == calc('"bc"') + assert calc('str-slice("abcd", 0, 3)') == calc('"abc"') + assert calc('str-slice("abcd", 1, 3)') == calc('"abc"') + assert calc('str-slice("abcd", 1, 30)') == calc('"abcd"') def test_to_upper_case(): |