diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-24 13:43:14 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-24 13:43:14 -0700 |
commit | c65d78ec66f24d8a5ee506c8b6568c2bbbcb6086 (patch) | |
tree | 02fffe24d20df03fe996452c544210e351958855 /scss/tests | |
parent | 450b8579f11e6de93b2236a927796b78d5e30667 (diff) | |
download | pyscss-c65d78ec66f24d8a5ee506c8b6568c2bbbcb6086.tar.gz |
for...to excludes the upper bound. Fixes #275.
Diffstat (limited to 'scss/tests')
-rw-r--r-- | scss/tests/files/bugs/for-to-vs-through.css | 14 | ||||
-rw-r--r-- | scss/tests/files/bugs/for-to-vs-through.scss | 12 |
2 files changed, 26 insertions, 0 deletions
diff --git a/scss/tests/files/bugs/for-to-vs-through.css b/scss/tests/files/bugs/for-to-vs-through.css new file mode 100644 index 0000000..3d50671 --- /dev/null +++ b/scss/tests/files/bugs/for-to-vs-through.css @@ -0,0 +1,14 @@ +a { + prop: 1; + prop: 2; + prop: 3; + prop: 4; +} + +b { + prop: 1; + prop: 2; + prop: 3; + prop: 4; + prop: 5; +} diff --git a/scss/tests/files/bugs/for-to-vs-through.scss b/scss/tests/files/bugs/for-to-vs-through.scss new file mode 100644 index 0000000..c5af514 --- /dev/null +++ b/scss/tests/files/bugs/for-to-vs-through.scss @@ -0,0 +1,12 @@ +// `to` excludes the upper bound, but `through` does not +a { + @for $var from 1 to 5 { + prop: $var; + } +} + +b { + @for $var from 1 through 5 { + prop: $var; + } +} |