Skip to content
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

Translation of “04-06 Unit testing” #74

Merged
merged 3 commits into from
Oct 26, 2017

Conversation

AMashoshyna
Copy link
Contributor

issue #28, translation by @roman01la

Regardless of the language, the main objective of unit testing is to run some test
cases, verifying that the code under test behaves as expected and returns without
raising unexpected exceptions.
Незалежно від мови основним завданням модульного тестування є реалізація певної кількості тестових випадків з метою переконатися, що код, який проходить тестування, поводиться коректним чином та не спричиняє неочікуваних винятків.

Choose a reason for hiding this comment

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

Незалежно від мови,(!)

@@ -100,7 +94,7 @@ Ran 1 tests containing 1 assertions.
1 failures, 0 errors.
```

You can see that the expected assert failure is successfully printed in the console. To fix the test, just change the `=` with `not=` and run the file again:
Ви можете побачити, що в консоль виведене повідомлення про негативний результат перевірки, як і очікувалось. Щоб виправити тест, замініть `=` на `not=` і знову виконайте скомпільований файл:

Choose a reason for hiding this comment

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

виведено


Дуже важливо викликати `done` лише один раз. Не викликавши її зовсім або викликавши більше одного разу може привести до несподіваної поведінки.

Choose a reason for hiding this comment

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

Якщо ви не викликаєте її зовсім або викликаваєте більше одного разу,(!) це може привести до несподіваної поведінки.

@denysdovhan denysdovhan mentioned this pull request Oct 10, 2017
36 tasks
@denysdovhan denysdovhan changed the title 04 05 unit testing Translation of “04-05 Unit testing” Oct 10, 2017
@denysdovhan denysdovhan changed the title Translation of “04-05 Unit testing” Translation of “04-06 Unit testing” Oct 26, 2017
@denysdovhan denysdovhan merged commit 46c8de3 into LambdaBooks:master Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants