mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 17:50:39 +08:00
style: improve test names of GetEuclidGCD'
(#1646)
This commit is contained in:
@ -1,8 +1,6 @@
|
|||||||
import { GetEuclidGCD, GetEuclidGCDRecursive } from '../GetEuclidGCD'
|
import { GetEuclidGCD, GetEuclidGCDRecursive } from '../GetEuclidGCD'
|
||||||
|
|
||||||
describe.each([GetEuclidGCD, GetEuclidGCDRecursive])(
|
describe.each([GetEuclidGCD, GetEuclidGCDRecursive])('%o', (gcdFunction) => {
|
||||||
'%# GetEuclidGCD',
|
|
||||||
(gcdFunction) => {
|
|
||||||
it.each([
|
it.each([
|
||||||
[5, 20, 5],
|
[5, 20, 5],
|
||||||
[109, 902, 1],
|
[109, 902, 1],
|
||||||
@ -21,5 +19,4 @@ describe.each([GetEuclidGCD, GetEuclidGCDRecursive])(
|
|||||||
expect(() => gcdFunction('1', 2)).toThrowError()
|
expect(() => gcdFunction('1', 2)).toThrowError()
|
||||||
expect(() => gcdFunction(1, '2')).toThrowError()
|
expect(() => gcdFunction(1, '2')).toThrowError()
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user