Created
June 14, 2016 09:40
-
-
Save DonaldKellett/3f420e0e91830f0de3b3105229d63904 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
/* | |
Sass Kata Codewars Style - Multiply (8kyu) | |
Reference Link: https://www.codewars.com/kata/multiply | |
(c) Donald Leung. All rights reserved. | |
*/ | |
// Code | |
@function multiply($a, $b) { | |
@return $a * $b; | |
} | |
// Pseudo-test cases | |
.test-1 { | |
a: 7; | |
b: 4; | |
expected: 28; | |
actual: multiply(7, 4); | |
pass: multiply(7, 4) == 28; | |
} | |
.test-2 { | |
a: 3; | |
b: 5; | |
expected: 15; | |
actual: multiply(3, 5); | |
pass: multiply(3, 5) == 15; | |
} | |
.test-3 { | |
a: -9; | |
b: 7; | |
expected: -63; | |
actual: multiply(-9, 7); | |
pass: multiply(-9, 7) == -63; | |
} | |
.test-4 { | |
a: 12; | |
b: 13; | |
expected: 156; | |
actual: multiply(12, 13); | |
pass: multiply(12, 13) == 156; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sass Kata Codewars Style - Multiply (8kyu) | |
Reference Link: https://www.codewars.com/kata/multiply | |
(c) Donald Leung. All rights reserved. | |
*/ | |
.test-1 { | |
a: 7; | |
b: 4; | |
expected: 28; | |
actual: 28; | |
pass: true; | |
} | |
.test-2 { | |
a: 3; | |
b: 5; | |
expected: 15; | |
actual: 15; | |
pass: true; | |
} | |
.test-3 { | |
a: -9; | |
b: 7; | |
expected: -63; | |
actual: -63; | |
pass: true; | |
} | |
.test-4 { | |
a: 12; | |
b: 13; | |
expected: 156; | |
actual: 156; | |
pass: true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment