From 43e3fd91d039c89a2b359e89f9ca71b5a1f5e85c Mon Sep 17 00:00:00 2001 From: merelymyself <88221256+merelymyself@users.noreply.github.com> Date: Fri, 22 Apr 2022 12:15:24 +0800 Subject: [PATCH] Create GetEuclidGCD.test.js test was not present beforehand. --- Maths/test/GetEuclidGCD.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Maths/test/GetEuclidGCD.test.js diff --git a/Maths/test/GetEuclidGCD.test.js b/Maths/test/GetEuclidGCD.test.js new file mode 100644 index 0000000000..bcc2a6c2bf --- /dev/null +++ b/Maths/test/GetEuclidGCD.test.js @@ -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)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: