Skip to content

Commit

Permalink
Add more spec tests for libsass issue 1169
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Jan 9, 2016
1 parent d45a365 commit 0369a39
Show file tree
Hide file tree
Showing 32 changed files with 100 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/libsass-closed-issues/issue_1169/error/color/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Duplicate key #ff0000 in map (red: "foo", red: "bar").
on line 1 of /sass/sass-spec/spec/libsass-issues/issue_1169/error/color/input.scss
Use --trace for backtrace.
Empty file.
8 changes: 8 additions & 0 deletions spec/libsass-closed-issues/issue_1169/error/color/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$map: (
red: 'foo',
red: 'bar',
);

.foo {
content: inspect($map);
}
1 change: 1 addition & 0 deletions spec/libsass-closed-issues/issue_1169/error/color/status
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Duplicate key "key" in map (fncall(1 + 2): "foo", fncall(1 + 2): "bar").
on line 5 of /sass/sass-spec/spec/libsass-issues/issue_1169/error/functioncall/input.scss
Use --trace for backtrace.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@function fncall($void) {
@return "key";
}

$map: (
fncall(1+2): 'foo',
fncall(1+2): 'bar',
);

.foo {
content: inspect($map);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
3 changes: 3 additions & 0 deletions spec/libsass-closed-issues/issue_1169/error/interpolate/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Duplicate key "red" in map ("red": "bar", #{re}#{"d"}: "baz").
on line 1 of /sass/sass-spec/spec/libsass-issues/issue_1169/error/interpolate/input.scss
Use --trace for backtrace.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$map: (
'red': 'bar',
#{re}#{'d'}: 'baz',
);

.foo {
content: inspect($map);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo { content: (red: "bar", red: "baz"); }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo{content:(red: "bar", red: "baz")}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo {
content: (red: "bar", red: "baz");
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.foo {
content: (red: "bar", red: "baz"); }
8 changes: 8 additions & 0 deletions spec/libsass-closed-issues/issue_1169/error/simple/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$map: (
red: 'bar',
#{red}: 'baz',
);

.foo {
content: inspect($map);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo { content: (1: "bar", 2: "foo"); }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo{content:(1: "bar", 2: "foo")}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo {
content: (1: "bar", 2: "foo");
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.foo {
content: (1: "bar", 2: "foo"); }
15 changes: 15 additions & 0 deletions spec/libsass-closed-issues/issue_1169/functioncall/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$count: 0;

@function counter() {
$count: $count + 1 !global;
@return $count;
}

$map: (
counter(): 'bar',
counter(): 'foo',
);

.foo {
content: inspect($map);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo { content: (red: "bar", "red": "foo"); content: (red: "bar", "red": red); }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo{content:(red: "bar", "red": "foo");content:(red: "bar", "red": red)}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.foo {
content: (red: "bar", "red": "foo");
content: (red: "bar", "red": red);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo {
content: (red: "bar", "red": "foo");
content: (red: "bar", "red": red); }
14 changes: 14 additions & 0 deletions spec/libsass-closed-issues/issue_1169/simple/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$map1: (
red: 'bar',
'red': 'foo',
);

$map2: (
red: 'bar',
'red': #{red},
);

.foo {
content: inspect($map1);
content: inspect($map2);
}

0 comments on commit 0369a39

Please sign in to comment.