File size: 460 Bytes
f7c0146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
public class Main {
    //Program start
    
    //Program end

    @Test
public void test1() {
    assertEquals("50", discountPrices("there are $1 $2 and 5$ candies in the shop", 50));
}
@Test
public void test2() {
    assertEquals("100", discountPrices("1 2 $3 4 $5 $6 7 8$ $9 $10$", 100));
}

}