Skip to content

Commit 17f0854

Browse files
authored
Merge pull request #1439 from nschonni/fix--Add-error-for-non-int-str-insert-index
fix: Add error for non-int str-insert index
2 parents 2d09031 + 5eb9419 commit 17f0854

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spec/core_functions/string/insert.hrx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ Error: argument `$index` of `str-insert($string, $insert, $index)` must be a num
250250

251251
<===>
252252
================================================================================
253-
<===> error/decimal/options.yml
254-
---
255-
:todo:
256-
- sass/libsass#2921
257-
258253
<===> error/decimal/input.scss
259254
a {b: str-insert("", "", 0.5)}
260255

@@ -266,6 +261,14 @@ Error: $index: 0.5 is not an int.
266261
'
267262
input.scss 1:7 root stylesheet
268263

264+
<===> error/decimal/error-libsass
265+
Error: $index: 0.500000 is not an int
266+
on line 1:7 of input.scss, in function `str-insert`
267+
from line 1:7 of input.scss
268+
>> a {b: str-insert("", "", 0.5)}
269+
270+
------^
271+
269272
<===>
270273
================================================================================
271274
<===> error/too_few_args/input.scss

0 commit comments

Comments
 (0)