Skip to content

Commit

Permalink
fix: non-integers passed to str-slice
Browse files Browse the repository at this point in the history
[skip libsass]
  • Loading branch information
nschonni committed Jul 26, 2019
1 parent 4ee20fa commit d10b618
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions spec/core_functions/string/slice.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,6 @@ Error: argument `$end-at` of `str-slice($string, $start-at, $end-at:-1)` must be

------^

<===>
================================================================================
<===> error/decimal/options.yml
---
:todo:
- sass/libsass#2922

<===>
================================================================================
<===> error/decimal/start/input.scss
Expand All @@ -397,6 +390,14 @@ Error: 0.5 is not an int.
'
input.scss 1:7 root stylesheet

<===> error/decimal/start/error-libsass
Error: $start-at: 0.500000 is not an int
on line 1:7 of input.scss, in function `str-slice`
from line 1:7 of input.scss
>> a {b: str-slice("", 0.5)}

------^

<===>
================================================================================
<===> error/decimal/end/input.scss
Expand All @@ -410,6 +411,14 @@ Error: 1.5 is not an int.
'
input.scss 1:7 root stylesheet

<===> error/decimal/end/error-libsass
Error: $end-at: 1.500000 is not an int
on line 1:7 of input.scss, in function `str-slice`
from line 1:7 of input.scss
>> a {b: str-slice("", 1, 1.5)}

------^

<===>
================================================================================
<===> error/too_few_args/input.scss
Expand Down

0 comments on commit d10b618

Please sign in to comment.