Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
should fix the formatting issues. I was having trouble with npx stand…
…ard, so I just used the online verifier at https://standardjs.com/demo.html
  • Loading branch information
merelymyself committed Apr 21, 2022
commit 1956597c55b19a0d0d2c4099d90f1b459ea8faba
14 changes: 7 additions & 7 deletions Maths/test/WhileLoopFactorial.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { factorialize } from '../WhileLoopFactorial'

function testFactorial(n, expected) {
test ('Testing on ' + n + '!', () => {
expect (factorialize (n)).toBe (expected)
function testFactorial (n, expected) {
test('Testing on ' + n + '!', () => {
expect(factorialize(n)).toBe(expected)
})
}

testFactorial (3, 6)
testFactorial (7, 5040)
testFactorial (0, 1)
testFactorial (12, 479001600)
testFactorial(3, 6)
testFactorial(7, 5040)
testFactorial(0, 1)
testFactorial(12, 479001600)