Skip to content

Nikolai Romanov | oct2025-2 | Structuring and testing data | Sprint 3 | 02 Complete Sprint 3 Coursework - #3

Open
kolya-rm wants to merge 94 commits into
mainfrom
coursework/sprint-3
Open

Nikolai Romanov | oct2025-2 | Structuring and testing data | Sprint 3 | 02 Complete Sprint 3 Coursework#3
kolya-rm wants to merge 94 commits into
mainfrom
coursework/sprint-3

Conversation

@kolya-rm

Copy link
Copy Markdown
Owner

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

  1. Implemented described logic and tested with console.assert() in the key implement part for functions:
  • getAngleType(angle);
  • isProperFraction(numerator, denominator);
  • getCardValue(cardStr).
  1. Rewrite test using Jest instead of console.assert in the mandatory rewrite part for functions:
  • getAngleType(angle);
  • isProperFraction(numerator, denominator);
  • getCardValue(cardStr).
  1. Implemented logic and tests using Jest in the mandatory practice/implement part for functions:
  • countChar(stringOfCharacters, findCharacter);
  • getOrdinalNumber(num);
  • repeat(stringToRepeat, repeatCount);
  1. Answered questions about the find(str, char) function in the stretch investigate part.

  2. Implemented logic and tests using Jest in the stretch investigate part for functions:

  • passwordValidator(password, previousPasswords)
  • cardValidator(cardNumber)

Questions

…or 1-get-angel-type.js in sprint 3 key implement part.
…t-angle-type.js sprint 3 key implement part.
…oper-fraction.js sprint 3 key implement part.
…-proper-fraction.js sprint 2 key implement part.
…an denominator in 2-is-proper-fraction.js sprint 3 key implement part.
…e value greater

than denominator in 2-is-proper-fraction.js sprint 3 key implement part.
…e value greater

than numerator in 2-is-propr-fraction.js sprint 3 key implement part.
…ith the absolute value greater than numerator in 2-is-proper-fraction.js sprint 3 key implement part.
…e value less than numerator in 2-is-proper-fraction.js sprint 3 key implement part.
…tor is less in absolute values in 2-is-proper-fraction.js sprint 3 key implement part.
…umerator value is greater in absolute values in 2-is-proper-fraction.js sprint 3 key implement part.
…nominator in 2-is-proper-fraction.js sprint 3 key implement part.
…ct work in sprint 3 mandatory practice / implement part.
…= 2 in sprint 3 mandatory practice/implement part.
… in 1 except ending 11 in sprint 3 mandatory practice/implement part.
…rs ending in 1 in sprint 3 mandatory practice/implement part.
… in 2 in sprint 3 mandatory practice/implement part.
…rs ending in 2 in sprint 3 mandatory practice/implement part. Fixed tests for number equal 102 and 122.
… in 3 in sprint 3 mandatory practice/implement part.
…rs ending in 3 in sprint 3 mandatory practice/implement part.
…n sprint 3 mandatory practice/implement part. Updated tests messages.
… in sprint 3 mandatory practice/implement part.
…rgument in sprint 3 mandatory practice/implement part. Updated tests messages.
…argument in sprint 3 mandatory practice/implement part.
…t in sprint 3 mandatory practice/implement part
…nt in sprint 3 mandatory practice/implement part.
…gument in sprint 3 mandatory practice/implement part
…argument in sprint 3 mandatory practice/implement part.
  - refactored the logic of checking that a password has at least 5 characters;
  - updated test notation to check a password minimal length.
  - implemented the logic of checking that a password has at least 1 english uppercase letter;
  - updated the test value checking a password minimal length.
  - added the presence of english uppercase letter checking test.
  - implemented the logic of checking that a password has at least 1 english lowercase letter;
  - updated the test value checking a password minimal length and presence of uppercase letter;
  - added the presence of english lowercase letter checking test;
  - fixing some variable names.
  - implemented the logic of checking that a password has at least 1 digit;
  - updated the test values checking a password minimal length and presence of uppercase and lowercase letters;
  - added the presence of digit checking test;
  - fixing some variable names.
  - implemented the logic of checking that a password has at least 1 non-alphanumeric symbo ("!", "#", "$", "%", ".", "*", "&");
  - updated the test values checking a password minimal length and presence of uppercase, lowercase letters and digits;
  - added the presence of non-alphanumerical symbols test;
  - fixed some indents.
  - added the second parameter for the function validatePassword -- array of previously used passwords;
  - implemented the logic of checking that a password is not contained in the previous passwords array;
  - updated the tests checking a password minimal length and presence of uppercase, lowercase letters and digits;
  - added the test cheking the previous passwords array contains the given password.
  - added file card-validater.js for function validateCard(cardNumber) and function is exported;
  - added file card-validator.test.js for tests;
  - implemented checking the length of the card number logic;
  - added the test checks the card number length;
  - fix the typo in the function name.
  - implemented checking the card number contains non-digit characters logic;
  - added the test checks the card number contains non-digit characters;
  - implemented checking the card number digit sum is not less tah 16;
  - added the test checks the card number digits sum is not less than 16;
  - fixed logic for the check card number contains only digits;
  - updated testing card nuber values.
  - implemented checking the card number ends in an even digit;
  - added the test checks the card number ends in an even digit;
  - updated testing card number values.
  - fixed checking the card number ends in an even digit;
  - added the test checks the card number ends in an even digit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant