Skip to content

Commit

Permalink
Add tests for Infinity and NaN as map keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Sep 4, 2020
1 parent 1af84b9 commit 5e0c5ab
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions spec/values/maps/key_equality.hrx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<===> nan/options.yml
---
:todo:
- sass/libsass#3126

<===> nan/input.scss
a {b: inspect(map-get(((0/0): b), 0/0))}

<===> nan/output.css
a {
b: null;
}

<===>
================================================================================
<===> infinity/positive/options.yml
---
:todo:
- sass/libsass#3126

<===> infinity/positive/input.scss
a {b: inspect(map-get(((1/0): b), 1/0))}

<===> infinity/positive/output.css
a {
b: null;
}

<===>
================================================================================
<===> infinity/negative/options.yml
---
:todo:
- sass/libsass#3126

<===> infinity/negative/input.scss
a {b: inspect(map-get(((1/0): b), 1/0))}

<===> infinity/negative/output.css
a {
b: null;
}

0 comments on commit 5e0c5ab

Please sign in to comment.