From 7e0d61911ac3d2923e849f5fdf562dedc84012d5 Mon Sep 17 00:00:00 2001 From: David Khourshid Date: Thu, 7 May 2015 07:49:59 -0400 Subject: [PATCH] Added spec for libsass issue #1171 --- .../issue_1171/expected.compact.css | 1 + .../issue_1171/expected.compressed.css | 1 + .../issue_1171/expected.expanded.css | 4 ++++ .../issue_1171/expected_output.css | 3 +++ .../libsass-todo-issues/issue_1171/input.scss | 20 +++++++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 spec/libsass-todo-issues/issue_1171/expected.compact.css create mode 100644 spec/libsass-todo-issues/issue_1171/expected.compressed.css create mode 100644 spec/libsass-todo-issues/issue_1171/expected.expanded.css create mode 100644 spec/libsass-todo-issues/issue_1171/expected_output.css create mode 100644 spec/libsass-todo-issues/issue_1171/input.scss diff --git a/spec/libsass-todo-issues/issue_1171/expected.compact.css b/spec/libsass-todo-issues/issue_1171/expected.compact.css new file mode 100644 index 0000000000..f285ab8189 --- /dev/null +++ b/spec/libsass-todo-issues/issue_1171/expected.compact.css @@ -0,0 +1 @@ +.test { foo: 3; baz: 2; } \ No newline at end of file diff --git a/spec/libsass-todo-issues/issue_1171/expected.compressed.css b/spec/libsass-todo-issues/issue_1171/expected.compressed.css new file mode 100644 index 0000000000..271e01662e --- /dev/null +++ b/spec/libsass-todo-issues/issue_1171/expected.compressed.css @@ -0,0 +1 @@ +.test{foo:3;baz:2;} \ No newline at end of file diff --git a/spec/libsass-todo-issues/issue_1171/expected.expanded.css b/spec/libsass-todo-issues/issue_1171/expected.expanded.css new file mode 100644 index 0000000000..aad10f646e --- /dev/null +++ b/spec/libsass-todo-issues/issue_1171/expected.expanded.css @@ -0,0 +1,4 @@ +.test { + foo: 3; + baz: 2; +} \ No newline at end of file diff --git a/spec/libsass-todo-issues/issue_1171/expected_output.css b/spec/libsass-todo-issues/issue_1171/expected_output.css new file mode 100644 index 0000000000..f94993deef --- /dev/null +++ b/spec/libsass-todo-issues/issue_1171/expected_output.css @@ -0,0 +1,3 @@ +.test { + foo: 3; + baz: 2; } \ No newline at end of file diff --git a/spec/libsass-todo-issues/issue_1171/input.scss b/spec/libsass-todo-issues/issue_1171/input.scss new file mode 100644 index 0000000000..165d7a96e9 --- /dev/null +++ b/spec/libsass-todo-issues/issue_1171/input.scss @@ -0,0 +1,20 @@ +@function foo($initial, $args...) { + $args: append($args, 3); + + @return bar($initial, $args...); +} + +@function bar($args...) { + @return length($args); +} + +@function baz($initial, $args...) { + $args: append($args, 3); + + @return nth($args, 1); +} + +.test { + foo: foo(1, 2); + baz: baz(1, 2); +} \ No newline at end of file