UNPKG
f2c-xstriker
Version:
latest (1.0.8)
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
fahrenheit to celcius
github.com/xstriker/f2c-xStriker
xstriker/f2c-xStriker
f2c-xstriker
/
test.js
15 lines
(9 loc)
•
187 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
f2c =
require
(
'./index.js'
);
const
tempF =
20
;
const
tempC =
f2c
(tempF);
if
(tempC == -
6.67
){
console
.
log
(
'Test ok'
); process.
exit
(
0
); }
console
.
log
(
'Fail'
); process.
exit
(
1
);