-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtest.scss
46 lines (39 loc) · 1.12 KB
/
test.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@import "math";
.test {
background-color:green;
color: white;
font-weight: bold;
margin-bottom: 10px;
width: exp(1);
}
#test-power {
@if power(10, 2) != 100 { background-color:red; };
@if power(10, 0) != 1 { background-color:red; };
@if power(10, -1) != 0.1 { background-color:red; }
@if power(10, -2) != 0.01 { background-color:red; }
}
#test-factorial {
@if factorial(4) != 24 { background-color:red; };
@if factorial(0) != 1 { background-color:red; };
@if factorial(-1) != 1 { background-color:red; };
}
#test-sin {
@if sin(0) != 0 { background-color:red; };
//@if sin(1.571) != 1.0 { background-color:red; };
//@if sin(3.14159) != 0 { background-color:red; };
}
#test-cos {
@if cos(0) != 1 { background-color:red; };
//@if cos(1.571) != 0 { background-color:red; };
//@if cos(3.14159) != 1 { background-color:red; };
}
#test-exp {
@if exp(0) != 1 { background-color:red; };
//@if exp(1) != 2.718 { background-color:red; };
}
#test-ln {
@if ln(exp(1)) != 1.001 { background-color:red; };
}
#test-sqrt {
@if sqrt(4) != 2 { background-color:red; };
}