Back-end Engineering
Red-Green-Refactor: Practicing TDD with Kotlin & JUnit
This course focuses on practicing the core TDD workflow: "Red-Green-Refactor." You'll write failing tests (Red), implement code to pass them (Green), and refactor while keeping tests passing (Refactor). No new concepts are introduced—just hands-on practice with various requirements to sharpen your TDD skills.
JUnit
Kotlin
See path
5 lessons
25 practices
3 hours
Badge for Programming, Algorithms, and Data Structures,
Programming, Algorithms, and Data Structures
Lessons and practices
Correct Discount Application
Zero Discount Handling Task
Decimal Discount Precision Task
Negative Price Handling Task
Discount Calculator Implementation
Negative Discount Percentage Handling in Kotlin Task
Handling Very Small Prices in Discount Calculations
Minimum Discount Percentage Application Task
Capping Maximum Discount Amount Task
Starting with an Empty Shopping Cart Task
Adding a Single Item to the ShoppingCart in Kotlin
Adding Multiple Distinct Items to Shopping Cart
Handling Multiple Quantities in ShoppingCart
Removing an Item from ShoppingCart in Kotlin
Removing a Non-Existent Item in ShoppingCart
Applying Percentage Discount in Shopping Cart
Applying a Bulk Discount to Shopping Cart
Clearing All Items in the Shopping Cart Task
Updating Item Quantity in Shopping Cart
Enforcing Maximum Quantity Limit in Shopping Cart Task
Retrieving Item Details by ID in ShoppingCart
Applying Discount Codes in Shopping Cart
Implement a Shopping Cart with Discount Code Validation in Kotlin
Implement Shopping Cart with Existing Item Update Feature
Adding to Existing Item in Cart Respects Maximum Quantity
Meet Cosmo:
The smartest AI guide in the universe
Our built-in AI guide and tutor, Cosmo, prompts you with challenges that are built just for you and unblocks you when you get stuck.
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal