We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9513bcd commit c81db62Copy full SHA for c81db62
Maths/test/GetEuclidGCD.test.js
@@ -0,0 +1,12 @@
1
+import { GetEuclidGCD } from '../GetEuclidGCD'
2
+
3
+function testEuclidGCD (n, m, expected) {
4
+ test('Testing on ' + n + ' and ' + m + '!', () => {
5
+ expect(GetEuclidGCD(n, m)).toBe(expected)
6
+ })
7
+}
8
9
+testEuclidGCD(5, 20, 5)
10
+testEuclidGCD(109, 902, 1)
11
+testEuclidGCD(290, 780, 10)
12
+testEuclidGCD(104, 156, 52)
0 commit comments