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
Next Next commit
Space for formatting.
  • Loading branch information
merelymyself authored Apr 21, 2022
commit 2d40205bbc116c2ae57a18154479bd79dc619ad1
12 changes: 6 additions & 6 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)
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)