mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
12
Maths/test/GetEuclidGCD.test.js
Normal file
12
Maths/test/GetEuclidGCD.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { GetEuclidGCD } from '../GetEuclidGCD'
|
||||
|
||||
function testEuclidGCD (n, m, expected) {
|
||||
test('Testing on ' + n + ' and ' + m + '!', () => {
|
||||
expect(GetEuclidGCD(n, m)).toBe(expected)
|
||||
})
|
||||
}
|
||||
|
||||
testEuclidGCD(5, 20, 5)
|
||||
testEuclidGCD(109, 902, 1)
|
||||
testEuclidGCD(290, 780, 10)
|
||||
testEuclidGCD(104, 156, 52)
|
Reference in New Issue
Block a user