tgoop.com/cppproglib/6026
Create:
Last Update:
Last Update:
🧪 Промпт дня: Создания тестов в C++
Мы подготовили для вас полезный промпт, который поможет быстро создать качественные тесты для любых C++ функций с использованием современных фреймворков.
Create two [ define technology ] tests for the above 'tempFunction' function. One that is expected to pass and one that is expected to fail.
Где [ define technology ] — это ваш тестовый фреймворк (Google Test, Catch2, Boost.Test и т.д.).
•
Create two Google Test tests for the above 'calculateAverage' function. One that is expected to pass and one that is expected to fail.
•
Create two Catch2 tests for the above 'validateEmail' function. One that is expected to pass and one that is expected to fail.
• Создать тесты в едином стиле
• Покрыть как успешные, так и неуспешные сценарии
• Быстро адаптироваться к любому тестовому фреймворку
• Обеспечить базовое покрытие для локальной валидации
Библиотека C/C++ разработчика
#буст