mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-12 03:06:05 +09:00
@@ -4,22 +4,22 @@ describe('ftoc', function() {
|
||||
it('works', function() {
|
||||
expect(ftoc(32)).toEqual(0);
|
||||
});
|
||||
it('rounds to 1 decimal', function() {
|
||||
xit('rounds to 1 decimal', function() {
|
||||
expect(ftoc(100)).toEqual(37.8);
|
||||
});
|
||||
it('works with negatives', function() {
|
||||
xit('works with negatives', function() {
|
||||
expect(ftoc(-100)).toEqual(-73.3);
|
||||
});
|
||||
});
|
||||
|
||||
describe('ctof', function() {
|
||||
it('works', function() {
|
||||
xit('works', function() {
|
||||
expect(ctof(0)).toEqual(32);
|
||||
});
|
||||
it('rounds to 1 decimal', function() {
|
||||
xit('rounds to 1 decimal', function() {
|
||||
expect(ctof(73.2)).toEqual(163.8);
|
||||
});
|
||||
it('works with negatives', function() {
|
||||
xit('works with negatives', function() {
|
||||
expect(ctof(-10)).toEqual(14);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user