Skip to content

Fix the test expected value #312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fix the test expected value #312

wants to merge 1 commit into from

Conversation

nbbrdn
Copy link

@nbbrdn nbbrdn commented Oct 26, 2023

Here is detailed execution:

text = 'When \t\n you play a \t\n game of thrones you win or you die.'
a = text[5:16]
a
'\t\n you play'
b = a.strip()
b
'you play'
len(b)
8

>>> text = 'When \t\n you play a \t\n game of thrones you win or you die.'
>>> a = text[5:16]
>>> a
'\t\n you play'
>>> b = a.strip()
>>> b
'you play'
>>> len(b)
8
@fey fey requested a review from sgmdlt October 27, 2023 10:44
@fey
Copy link
Contributor

fey commented Oct 27, 2023

@nbbrdn Добрый день.

Тесты ожидаемо падают, ведь решение не изменилось. Почему вы решили поправить тесты?

@Malcom1986
Copy link
Contributor

@nbbrdn Николай, номер символа должен считаться по порядку, то есть 5-тый символ иммет индекс 4, а 15-тый имеет индекс 14. В результате мы должны иметь строку you pla с длинной 7 символов

@Malcom1986 Malcom1986 closed this Nov 2, 2023
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.

3 participants