mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
move files from testing repo to this repo
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
const expect = require('expect');const {ftoc, ctof} = require('./tempConversion')
|
||||
const {ftoc, ctof} = require('./tempConversion')
|
||||
|
||||
describe('ftoc', function() {
|
||||
it('works', function() {
|
||||
describe('ftoc', () => {
|
||||
test('works', () => {
|
||||
expect(ftoc(32)).toEqual(0);
|
||||
});
|
||||
xit('rounds to 1 decimal', function() {
|
||||
test.skip('rounds to 1 decimal', () => {
|
||||
expect(ftoc(100)).toEqual(37.8);
|
||||
});
|
||||
xit('works with negatives', function() {
|
||||
test.skip('works with negatives', () => {
|
||||
expect(ftoc(-100)).toEqual(-73.3);
|
||||
});
|
||||
});
|
||||
|
||||
describe('ctof', function() {
|
||||
xit('works', function() {
|
||||
describe('ctof', () => {
|
||||
test.skip('works', () => {
|
||||
expect(ctof(0)).toEqual(32);
|
||||
});
|
||||
xit('rounds to 1 decimal', function() {
|
||||
test.skip('rounds to 1 decimal', () => {
|
||||
expect(ctof(73.2)).toEqual(163.8);
|
||||
});
|
||||
xit('works with negatives', function() {
|
||||
test.skip('works with negatives', () => {
|
||||
expect(ctof(-10)).toEqual(14);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user