100xdevs-cohort-2 / assignments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Correction of countVowels Function Test Cases

bigyanpatel opened this issue · comments

Issue Description:

The existing test cases for the countVowels function have inconsistencies and inaccuracies in their expected outputs. These issues impact the accuracy and reliability of the function. Here are the identified problems in the test cases along with proposed fixes:

Inaccurate Counting:

  • Existing Behavior: The test cases for specific strings ('programming', 'OpenAI', 'chatbot', 'EaSiEr') produce incorrect counts for vowels.
  • Proposed Fix: Update the test cases to ensure the correct count of vowels is verified in these strings.

Steps to test:

In /01-js/tests/ directory run npx jest countVowels.test.js .

Closing the issue as the PR resolves the identified discrepancies in the countVowels test suite.