mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
13 lines
305 B
JavaScript
13 lines
305 B
JavaScript
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)
|