mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
merge: Absolute value (#866)
This commit is contained in:
@@ -10,4 +10,9 @@ describe('absVal', () => {
|
||||
const absOfPositiveNumber = absVal(50)
|
||||
expect(absOfPositiveNumber).toBe(50)
|
||||
})
|
||||
|
||||
it('should return an absolute value of a zero number', () => {
|
||||
const absOfPositiveNumber = absVal(0)
|
||||
expect(absOfPositiveNumber).toBe(0)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user