move files from testing repo to this repo

This commit is contained in:
Michael Frank
2021-04-30 21:49:46 +12:00
parent fb304675d8
commit 35d7948aa2
17 changed files with 624 additions and 583 deletions
+9 -9
View File
@@ -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);
});
});