// Path: src/main/java/com/hackerrank/ChocolateFeast.java
// static int chocolatesEaten(int nDollars, int cPrice, int mWrappersForC) {
//     int wrappers = nDollars / cPrice;
//     int result = wrappers;
//     while (wrappers >= mWrappersForC) {
//         result += wrappers / mWrappersForC;
//         wrappers = wrappers / mWrappersForC + wrappers % mWrappersForC;
//     }
//     return result;
// }


import org.junit.Test;
import static com.hackerrank.ChocolateFeast.chocolatesEaten;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
package com.hackerrank;



public class ChocolateFeastTest {

    @Test
    public void simpleTestCase() {
        assertThat(chocolatesEaten(10, 2, 5)).isEqualTo(6);
    }

    @Test
    public void simpleTestCase2() {
// Path: src/main/java/com/hackerrank/ChocolateFeast.java
// static int chocolatesEaten(int nDollars, int cPrice, int mWrappersForC) {
//     int wrappers = nDollars / cPrice;
//     int result = wrappers;
//     while (wrappers >= mWrappersForC) {
//         result += wrappers / mWrappersForC;
//         wrappers = wrappers / mWrappersForC + wrappers % mWrappersForC;
//     }
//     return result;
// }


// Path: src/test/java/com/hackerrank/ChocolateFeastTest.java
import org.junit.Test;
import static com.hackerrank.ChocolateFeast.chocolatesEaten;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

package com.hackerrank;



public class ChocolateFeastTest {

    @Test
    public void simpleTestCase() {
        assertThat(chocolatesEaten(10, 2, 5)).isEqualTo(6);
    }

    @Test
    public void simpleTestCase2() {
        assertThat(chocolatesEaten(12, 4, 4)).isEqualTo(3);