SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы

Назад

Exercises


Метки: python

  1. Install this book’s source code tree and ensure that you have a make utility installed on your system (Gnu make is freely available on the internet at various locations). In TestDemo.py, un-comment test3( ), then type make and observe the results.
  2. Modify TestDemo.py by adding a new test that throws an exception. Type make and observe the results.
  3. Modify your solutions to the exercises in Chapter 1 by adding unit tests. Write makefiles that incorporate the unit tests.

Footnotes

[1] http://www.junit.org
[2] I had originally called this assert(), but that word became reserved in JDK 1.4 when assertions were added to the language.