René's URL Explorer Experiment


Title: test(math): strengthen CoPrimeCheck regression tests (R50-T040) by nishadaniket174 · Pull Request #78 · S-AI-Projects/TheAlgorithms-JavaScript · GitHub

Open Graph Title: test(math): strengthen CoPrimeCheck regression tests (R50-T040) by nishadaniket174 · Pull Request #78 · S-AI-Projects/TheAlgorithms-JavaScript

X Title: test(math): strengthen CoPrimeCheck regression tests (R50-T040) by nishadaniket174 · Pull Request #78 · S-AI-Projects/TheAlgorithms-JavaScript

Description: Summary This PR strengthens the regression tests for CoPrimeCheck in Maths/CoPrimeCheck.js to protect its coprimality condition against plausible one-line logic mutations. The function determines whether two integers are coprime by checking whether their greatest common divisor (GCD) is exactly 1. Changes Made Improved the JSDoc documentation for CoPrimeCheck, including its inputs, return value, preconditions, and coprimality invariant. Clarified the mathematical definition of coprime numbers and corrected the existing documentation. Expanded Maths/test/CoPrimeCheck.test.js with explicit regression fixtures: (1, 1) → true (smallest valid coprime fixture). (2, 9) → true (prime and composite numbers with no common divisor). (9, 11) → true (composite and prime numbers that are coprime). (9, 12) → false (shared divisor 3). (9, 3) → false (composite 9 has divisor 3). Added checks for symmetry, repeatability, determinism, and input non-mutation. Added a regression assertion for (0, 0) to catch an incorrect boundary condition such as changing GCD === 1 to GCD <= 1. Added work/R50-T040/WORK_LOG.md to document the analysis, fixtures, mutation experiment, and verification results. Added work/R50-T040/check.py to automate focused tests, deliberate mutation verification, and the full repository test suite. Mutation Testing A plausible one-line mutation was introduced temporarily: GetEuclidGCD(firstNumber, secondNumber) <= 1 The regression tests correctly detect this mistake because GCD(0, 0) = 0, which must return false, not true. The deliberate mutation is used only for verification and is not included in the final implementation. Testing and Verification The following checks passed: Focused tests: npx vitest run Maths/test/CoPrimeCheck.test.js (18 tests passed). Mutation verification: confirmed that the deliberate boundary-condition mutation causes the regression tests to fail. Full repository test suite: npm test (347 test files passed, 12,031 tests passed). Code style: npm run check-style passed. Run the complete task-specific verification using: python3 work/R50-T040/check.py Related Issue Closes #40 Task: R50-T040 Target file: Maths/CoPrimeCheck.js Function: CoPrimeCheck All task-specific verification evidence is maintained under work/R50-T040/.

Open Graph Description: Summary This PR strengthens the regression tests for CoPrimeCheck in Maths/CoPrimeCheck.js to protect its coprimality condition against plausible one-line logic mutations. The function determines w...

X Description: Summary This PR strengthens the regression tests for CoPrimeCheck in Maths/CoPrimeCheck.js to protect its coprimality condition against plausible one-line logic mutations. The function determines w...

Opengraph URL: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dea539ba-7ee5-cc48-2722-697f2daf6722
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8B6C:B53AF:2E22403:3D7B3C2:6B01D76A
html-safe-nonce9aa611dfbd17e876d4b00a500aa9ab9a019b384c17e36595097569eceb30b1c7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjZDOkI1M0FGOjJFMjI0MDM6M0Q3QjNDMjo2QjAxRDc2QSIsInZpc2l0b3JfaWQiOiIzOTYzMzkxNTI3NTc2Nzg2Nzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb5130afc94d8307c2ad336ac92afe845b0624a7c88762dfb421ac0d5591dd0d7
hovercard-subject-tagpull_request:5343613299
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
twitter:imagehttps://avatars.githubusercontent.com/u/334835973?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/334835973?s=400&v=4
og:image:altSummary This PR strengthens the regression tests for CoPrimeCheck in Maths/CoPrimeCheck.js to protect its coprimality condition against plausible one-line logic mutations. The function determines w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/S-AI-Projects/TheAlgorithms-JavaScript git https://github.com/S-AI-Projects/TheAlgorithms-JavaScript.git
octolytics-dimension-user_id351892385
octolytics-dimension-user_loginS-AI-Projects
octolytics-dimension-repository_id1444142713
octolytics-dimension-repository_nwoS-AI-Projects/TheAlgorithms-JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id97086543
octolytics-dimension-repository_parent_nwoTheAlgorithms/JavaScript
octolytics-dimension-repository_network_root_id97086543
octolytics-dimension-repository_network_root_nwoTheAlgorithms/JavaScript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fpull%2F78%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fpull%2F78%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=S-AI-Projects%2FTheAlgorithms-JavaScript
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
S-AI-Projectshttps://github.com/S-AI-Projects
TheAlgorithms-JavaScripthttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript
Codehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript
Issues50 (50)https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues
Pull requests30 (30)https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pulls
Actionshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/actions
Projectshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/projects
Security and qualityhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/security
Insightshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/insights
Sign up for GitHub https://github.com/signup?return_to=%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fissues%2Fnew%2Fchoose
nishadaniket174https://github.com/nishadaniket174
S-AI-Projects:masterhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/tree/master
nishadaniket174:student/e26b07f0789/R50-T040https://github.com/nishadaniket174/TheAlgorithms-JavaScript/tree/student/e26b07f0789/R50-T040
Conversation 0 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78
Commits 1 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/commits
Checks 0 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/checks
Files changed 4 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
test(math): strengthen CoPrimeCheck regression tests (R50-T040) https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#top
Show all changes 1 commit https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
12379e3 R50-T040: Add CoPrimeCheck tests and verification nishadaniket174 Nov 21, 2026 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/commits/12379e38f5237afebaa37221c0f3046310c41531
Clear filters https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
Please reload this pagehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
Please reload this pagehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files
CoPrimeCheck.js https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-fb9c0d9a801bf19d64c294bf9f18b1fb96372250b34d92d63792509122effa58
CoPrimeCheck.test.js https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-27f08eef23b9ff259de101fa1e01c42edc671c3e1127c8642b515fe9e1044130
WORK_LOG.md https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-22f964071d3984b94a588c644ec006b71b7e3f44f95611f4eecae9b9aa1255b2
check.py https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-a0daad6a1b299b1567329f530777f965e58ffd2e04f6f5016827adbd875d6b05
Maths/CoPrimeCheck.jshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-fb9c0d9a801bf19d64c294bf9f18b1fb96372250b34d92d63792509122effa58
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/12379e38f5237afebaa37221c0f3046310c41531/Maths/CoPrimeCheck.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/{{ revealButtonHref }}
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-fb9c0d9a801bf19d64c294bf9f18b1fb96372250b34d92d63792509122effa58
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-fb9c0d9a801bf19d64c294bf9f18b1fb96372250b34d92d63792509122effa58
Maths/test/CoPrimeCheck.test.jshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-27f08eef23b9ff259de101fa1e01c42edc671c3e1127c8642b515fe9e1044130
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/12379e38f5237afebaa37221c0f3046310c41531/Maths/test/CoPrimeCheck.test.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/{{ revealButtonHref }}
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-27f08eef23b9ff259de101fa1e01c42edc671c3e1127c8642b515fe9e1044130
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-27f08eef23b9ff259de101fa1e01c42edc671c3e1127c8642b515fe9e1044130
work/R50-T040/WORK_LOG.mdhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-22f964071d3984b94a588c644ec006b71b7e3f44f95611f4eecae9b9aa1255b2
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/12379e38f5237afebaa37221c0f3046310c41531/work/R50-T040/WORK_LOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/{{ revealButtonHref }}
work/R50-T040/check.pyhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/files#diff-a0daad6a1b299b1567329f530777f965e58ffd2e04f6f5016827adbd875d6b05
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/12379e38f5237afebaa37221c0f3046310c41531/work/R50-T040/check.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/78/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.