Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/TypeScript
/ factorial.test.ts
File
factorial.test.ts
maths/test/factorial.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ factorial } from
'../factorial'
2
3
describe(
'factorial'
, () => {
4
test.each([-0.1, -1, -2, -42, 0.01, 0.42, 0.5, 1.337])(
Callers
nothing calls this directly
Calls
2
factorial
Function · 0.90
test
Function · 0.85
Tested by
no test coverage detected