diff --git a/Recursive/test/EucledianGCD.test.js b/Recursive/test/EucledianGCD.test.js new file mode 100644 index 0000000000..a4b21b283c --- /dev/null +++ b/Recursive/test/EucledianGCD.test.js @@ -0,0 +1,13 @@ +import { euclideanGCDIterative as GCD } from "../EucledianGCD"; + +describe('EucledianGCD', () => { + it('the GCD of 2 and 3 should be 1', () => { + expect(GCD(2,3)).toBe(1); + }) + it('the GCD of 2 and 8 should be 2', () => { + expect(GCD(2,8)).toBe(2); + }) + it('the GCD of 1 and 100 should be 1', () => { + expect(GCD(1,100)).toBe(1); + }) +}) \ No newline at end of file