-
Notifications
You must be signed in to change notification settings - Fork 12
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
Translation of “04-06 Unit testing” #74
Conversation
manuscript/04-05-Unit-testing.md
Outdated
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. | ||
Незалежно від мови основним завданням модульного тестування є реалізація певної кількості тестових випадків з метою переконатися, що код, який проходить тестування, поводиться коректним чином та не спричиняє неочікуваних винятків. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Незалежно від мови,(!)
manuscript/04-05-Unit-testing.md
Outdated
@@ -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=` і знову виконайте скомпільований файл: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
виведено
manuscript/04-05-Unit-testing.md
Outdated
|
||
Дуже важливо викликати `done` лише один раз. Не викликавши її зовсім або викликавши більше одного разу може привести до несподіваної поведінки. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Якщо ви не викликаєте її зовсім або викликаваєте більше одного разу,(!) це може привести до несподіваної поведінки.
issue #28, translation by @roman01la