Skip to content

Solution - #205

Open
pparys93 wants to merge 2 commits into
mate-academy:mainfrom
pparys93:develop
Open

pparys93 wants to merge 2 commits into
mate-academy:mainfrom
pparys93:develop

Conversation

@pparys93

Copy link
Copy Markdown

No description provided.

@zibi-dev zibi-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testy sa czytelne, ale sprawdzaja glownie proste przypadki. dopisz jeszcze cos w should return an array, bo teraz ten test jest pusty i zawsze przechodzi. popraw tez test should return an empty string...: nazwa mowi o pustym stringu, a sprawdza [‘Mate’, ‘Academy’] 🙂

Comment thread src/arrayReverse.test.js Outdated
});

// write more tests here
test('reserves characters and preserves original length', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

literowka w nazwie: "reserves" -> "reverses". do tego ten test jest kopia 1:1 testu wyzej (['Mate', 'Academy']), wiec nic nowego nie sprawdza. lepiej daj tu przyklad ze speca: ['I', 'am', 'a', 'student!'] -> ['!', 'tn', 'e', 'dutsamaI']. to jest najwazniejszy case, bo slowa maja rozne dlugosci i widac, ze kazde slowo ma po odwroceniu tyle samo znakow co przed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kurde jakie babole zrobiłem... ale dobra. już dopisałem brakujące testy i doprecyzowałem opisy. Fantastyczne 8 testów gotowe na zatwierdzenie xD

Comment thread src/arrayReverse.test.js
expect(arrayReverse(input)).toEqual(['0lleH']);
});

test('reverses an empty string', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spoko, ze jest pusty string, ale brakuje pustej tablicy: arrayReverse([]) -> []. dodaj tez przypadek z pustym stringiem miedzy innymi slowami, np ['', 'abc'] -> ['', 'cba']. wtedy wiadomo, ze slowo o dlugosci 0 dalej ma 0 znakow i nie przesuwa reszty liter

Comment thread src/arrayReverse.test.js Outdated
expect(arrayReverse(input)).toEqual(['ymed', 'acAetaM']);
});

test('reverses one string', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, pokrywa przyklad ze speca. w nazwie mozesz dopisac, ze chodzi o cyfre w stringu, bo to sprawdza tez znaki inne niz litery

@pparys93
pparys93 requested a review from zibi-dev November 12, 2026 18:12
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.

2 participants