Skip to content

Commit

Permalink
Add todo spec test for libsass issue 1930
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Apr 22, 2016
1 parent b7e5eaf commit 154e957
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sass-spec/spec/libsass-todo-issues/issue_1930/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$test-map : (
mykey : 10px,
otherKey : 20px,
moarKey : 30px
);


@mixin testMixin($key-name) {

// get index in map
$item-value : map-get($test-map, $key-name);
$item-index : index($test-map, ($key-name $item-value) );

@debug $item-index;

}

@include testMixin(otherKey);
18 changes: 18 additions & 0 deletions sass-spec/spec/libsass-todo-issues/issue_1930/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$test-map : (
mykey : 10px,
otherKey : 20px,
moarKey : 30px
);


@mixin testMixin($key-name) {

// get index in map
$item-value : map-get($test-map, $key-name);
$item-index : index($test-map, ($key-name $item-value) );

@debug $item-index;

}

@include testMixin(otherKey);

0 comments on commit 154e957

Please sign in to comment.