4
4
// represents the name of the fruit and the value represents how many
5
5
// of that particular fruit is in the basket. You have to put *MORE
6
6
// THAN 11* fruits in the basket. Three types of fruits - Apple (4),
7
- // Mango (2) and Lichi (5) are already given in the basket. You are
7
+ // Mango (2) and Lychee (5) are already given in the basket. You are
8
8
// not allowed to insert any more of these fruits!
9
9
//
10
10
// Make me pass the tests!
@@ -21,7 +21,7 @@ enum Fruit {
21
21
Apple ,
22
22
Banana ,
23
23
Mango ,
24
- Lichi ,
24
+ Lychee ,
25
25
Pineapple ,
26
26
}
27
27
@@ -30,7 +30,7 @@ fn fruit_basket(basket: &mut HashMap<Fruit, u32>) {
30
30
Fruit :: Apple ,
31
31
Fruit :: Banana ,
32
32
Fruit :: Mango ,
33
- Fruit :: Lichi ,
33
+ Fruit :: Lychee ,
34
34
Fruit :: Pineapple ,
35
35
] ;
36
36
@@ -49,7 +49,7 @@ mod tests {
49
49
let mut basket = HashMap :: < Fruit , u32 > :: new ( ) ;
50
50
basket. insert ( Fruit :: Apple , 4 ) ;
51
51
basket. insert ( Fruit :: Mango , 2 ) ;
52
- basket. insert ( Fruit :: Lichi , 5 ) ;
52
+ basket. insert ( Fruit :: Lychee , 5 ) ;
53
53
54
54
basket
55
55
}
@@ -60,7 +60,7 @@ mod tests {
60
60
fruit_basket ( & mut basket) ;
61
61
assert_eq ! ( * basket. get( & Fruit :: Apple ) . unwrap( ) , 4 ) ;
62
62
assert_eq ! ( * basket. get( & Fruit :: Mango ) . unwrap( ) , 2 ) ;
63
- assert_eq ! ( * basket. get( & Fruit :: Lichi ) . unwrap( ) , 5 ) ;
63
+ assert_eq ! ( * basket. get( & Fruit :: Lychee ) . unwrap( ) , 5 ) ;
64
64
}
65
65
66
66
#[ test]
0 commit comments