From 39381151583c05034a6ae787db3d3114f0aef782 Mon Sep 17 00:00:00 2001 From: Hugo Giraudel Date: Sun, 20 Sep 2015 17:20:03 +0000 Subject: [PATCH] Test for reserved function names and/or/not Test for https://github.com/sass/libsass/issues/713 --- spec/libsass-closed-issues/issue_713/and/error | 3 +++ .../issue_713/and/expected_output.css | 0 spec/libsass-closed-issues/issue_713/and/input.scss | 7 +++++++ spec/libsass-closed-issues/issue_713/and/status | 1 + spec/libsass-closed-issues/issue_713/not/error | 3 +++ .../issue_713/not/expected_output.css | 0 spec/libsass-closed-issues/issue_713/not/input.scss | 7 +++++++ spec/libsass-closed-issues/issue_713/not/status | 1 + spec/libsass-closed-issues/issue_713/or/error | 3 +++ .../libsass-closed-issues/issue_713/or/expected_output.css | 0 spec/libsass-closed-issues/issue_713/or/input.scss | 7 +++++++ spec/libsass-closed-issues/issue_713/or/status | 1 + 12 files changed, 33 insertions(+) create mode 100644 spec/libsass-closed-issues/issue_713/and/error create mode 100644 spec/libsass-closed-issues/issue_713/and/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_713/and/input.scss create mode 100644 spec/libsass-closed-issues/issue_713/and/status create mode 100644 spec/libsass-closed-issues/issue_713/not/error create mode 100644 spec/libsass-closed-issues/issue_713/not/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_713/not/input.scss create mode 100644 spec/libsass-closed-issues/issue_713/not/status create mode 100644 spec/libsass-closed-issues/issue_713/or/error create mode 100644 spec/libsass-closed-issues/issue_713/or/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_713/or/input.scss create mode 100644 spec/libsass-closed-issues/issue_713/or/status diff --git a/spec/libsass-closed-issues/issue_713/and/error b/spec/libsass-closed-issues/issue_713/and/error new file mode 100644 index 0000000000..a75d71916b --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/and/error @@ -0,0 +1,3 @@ +Error: Invalid function name "and". + on line of /home/saper/sw/libsass/sass-spec/spec/libsass-closed-issues/issue_713/and/input.scss + Use --trace for backtrace. diff --git a/spec/libsass-closed-issues/issue_713/and/expected_output.css b/spec/libsass-closed-issues/issue_713/and/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_713/and/input.scss b/spec/libsass-closed-issues/issue_713/and/input.scss new file mode 100644 index 0000000000..ec7f2a864b --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/and/input.scss @@ -0,0 +1,7 @@ +@function and() { + @return "and"; +} + +test { + and: and(); +} diff --git a/spec/libsass-closed-issues/issue_713/and/status b/spec/libsass-closed-issues/issue_713/and/status new file mode 100644 index 0000000000..b44fe09a7a --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/and/status @@ -0,0 +1 @@ +65 \ No newline at end of file diff --git a/spec/libsass-closed-issues/issue_713/not/error b/spec/libsass-closed-issues/issue_713/not/error new file mode 100644 index 0000000000..a1f654e372 --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/not/error @@ -0,0 +1,3 @@ +Error: Invalid function name "not". + on line of /home/saper/sw/libsass/sass-spec/spec/libsass-closed-issues/issue_713/not/input.scss + Use --trace for backtrace. diff --git a/spec/libsass-closed-issues/issue_713/not/expected_output.css b/spec/libsass-closed-issues/issue_713/not/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_713/not/input.scss b/spec/libsass-closed-issues/issue_713/not/input.scss new file mode 100644 index 0000000000..b62704f2a4 --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/not/input.scss @@ -0,0 +1,7 @@ +@function not() { + @return "not"; +} + +test { + not: not(); +} diff --git a/spec/libsass-closed-issues/issue_713/not/status b/spec/libsass-closed-issues/issue_713/not/status new file mode 100644 index 0000000000..b44fe09a7a --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/not/status @@ -0,0 +1 @@ +65 \ No newline at end of file diff --git a/spec/libsass-closed-issues/issue_713/or/error b/spec/libsass-closed-issues/issue_713/or/error new file mode 100644 index 0000000000..13fa28f0d7 --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/or/error @@ -0,0 +1,3 @@ +Error: Invalid function name "or". + on line of /home/saper/sw/libsass/sass-spec/spec/libsass-closed-issues/issue_713/or/input.scss + Use --trace for backtrace. diff --git a/spec/libsass-closed-issues/issue_713/or/expected_output.css b/spec/libsass-closed-issues/issue_713/or/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_713/or/input.scss b/spec/libsass-closed-issues/issue_713/or/input.scss new file mode 100644 index 0000000000..266fc5fba1 --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/or/input.scss @@ -0,0 +1,7 @@ +@function or() { + @return "or"; +} + +test { + or: or(); +} diff --git a/spec/libsass-closed-issues/issue_713/or/status b/spec/libsass-closed-issues/issue_713/or/status new file mode 100644 index 0000000000..b44fe09a7a --- /dev/null +++ b/spec/libsass-closed-issues/issue_713/or/status @@ -0,0 +1 @@ +65 \ No newline at end of file