diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-04 20:28:18 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-04 20:28:18 +0100 |
| commit | 4ec6225a9273b8f0c93e4b3d93ecf1e1686b719c (patch) | |
| tree | 17b503e87ea6c6b3de8d0def36327deb988d2026 /test/_math.scss | |
| parent | Fix empty map check for Dart Sass (diff) | |
| download | iro-sass-4ec6225a9273b8f0c93e4b3d93ecf1e1686b719c.tar.gz iro-sass-4ec6225a9273b8f0c93e4b3d93ecf1e1686b719c.tar.bz2 iro-sass-4ec6225a9273b8f0c93e4b3d93ecf1e1686b719c.zip | |
Fix errors from transition from node-sass to sass
Diffstat (limited to 'test/_math.scss')
| -rw-r--r-- | test/_math.scss | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/_math.scss b/test/_math.scss deleted file mode 100644 index 5f40499..0000000 --- a/test/_math.scss +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | // sass-lint:disable empty-args | ||
| 2 | |||
| 3 | @include describe('Math') { | ||
| 4 | @include it('iro-math-pow') { | ||
| 5 | @include assert-equal(iro-math-pow(2, 2), 2 * 2, '2^2'); | ||
| 6 | @include assert-equal(iro-math-pow(2, 3), 2 * 2 * 2, '2^3'); | ||
| 7 | @include assert-equal(iro-math-pow(4, 3), 4 * 4 * 4, '4^3'); | ||
| 8 | @include assert-equal(iro-math-pow(3, -1), 1 / 3, '3^(-1)'); | ||
| 9 | @include assert-equal(iro-math-pow(4, -2), 1 / (4 * 4), '4^(-2)'); | ||
| 10 | @include assert-equal(iro-math-pow(3, 0), 1, '3^0'); | ||
| 11 | } | ||
| 12 | |||
| 13 | @include it('iro-math-clamp') { | ||
| 14 | @include assert-equal(iro-math-clamp(0, 0, 10), 0, '0 in [0, 10]'); | ||
| 15 | @include assert-equal(iro-math-clamp(10, 0, 10), 10, '10 in [0, 10]'); | ||
| 16 | @include assert-equal(iro-math-clamp(20, 0, 10), 10, '20 in [0, 10]'); | ||
| 17 | @include assert-equal(iro-math-clamp(3, 10, 20), 10, '3 in [10, 20]'); | ||
| 18 | @include assert-equal(iro-math-clamp(-5, -30, -10), -10, '-5 in [-30, -10]'); | ||
| 19 | @include assert-equal(iro-math-clamp(-5, -30, -2), -5, '-5 in [-30, -2]'); | ||
| 20 | } | ||
| 21 | } | ||
