Master Complex Algorithm Testing Using Property-Based Tests
Автор: Pairing with Duncan
Загружено: 2023-01-27
Просмотров: 667
Описание:
In the last couple of episodes ( • TDD Algorithm Design - Generating Anagrams... , • Optimize Your Kotlin Performance - Profili... ) we have had fun generating anagrams and then speeding up the code. In the comments, David A suggests that anagrams might be a good candidate for property-based testing.
Instead of checking examples, specifiying the expected output for a given input; property testing checks that given output properties are true for all inputs. Its a fine technique for cases like long anagrams where specifying the actual output is tedious, so in this video we look at using JUnit ParameterisedTests to implement property-based tests.
The code is available on GitHub - https://github.com/dmcg/bumper-generator
If you like this, you’ll probably like the book Java to Kotlin, A Refactoring Guidebook
http://java-to-kotlin.dev
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: