Skip to content

Commit 181d4ed

Browse files
committed
Add specs for lower/upper type check errors in for loop
1 parent 7ed9b38 commit 181d4ed

File tree

16 files changed

+36
-0
lines changed

16 files changed

+36
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: "foo" is not an integer.
2+
on line 2 of /sass/spec/errors/loop-for/numeric/lower_eval/input.scss
3+
Use --trace for backtrace.

spec/libsass-todo-tests/errors/loop-for/numeric/lower_eval/expected_output.css

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@function foo() {
2+
@for $i from "foo" through 4 {
3+
@return $i;
4+
}
5+
}
6+
7+
bar { baz: foo(); }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: "foo" is not an integer.
2+
on line 1 of /sass/spec/errors/loop-for/numeric/lower_expand/input.scss
3+
Use --trace for backtrace.

spec/libsass-todo-tests/errors/loop-for/numeric/lower_expand/expected_output.css

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@for $i from "foo" through 4 {
2+
bar { baz: $i; }
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: "foo" is not an integer.
2+
on line 2 of /sass/spec/errors/loop-for/numeric/upper_eval/input.scss
3+
Use --trace for backtrace.

spec/libsass-todo-tests/errors/loop-for/numeric/upper_eval/expected_output.css

Whitespace-only changes.

0 commit comments

Comments
 (0)