File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/test/java/com/github/streams/learn/functional_interfaces Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11package com .github .streams .learn .functional_interfaces ;
22
3- import static org .junit .jupiter .api .Assertions .assertFalse ;
4-
53import com .github .streams .learn .functional_interfaces .ignore .models .Person ;
6- import java .util .Comparator ;
7- import java .util .function .IntBinaryOperator ;
84import org .junit .jupiter .api .Assertions ;
95import org .junit .jupiter .api .Disabled ;
106import org .junit .jupiter .api .Test ;
117
8+ import java .util .Comparator ;
9+ import java .util .function .IntBinaryOperator ;
10+
11+ import static org .junit .jupiter .api .Assertions .assertFalse ;
12+
1213class F_ComparatorTest {
1314
1415 final Person ayman = new Person ("Ayman" , "Khan" , 51 );
@@ -70,7 +71,7 @@ void comparator03() {
7071
7172 Assertions .assertTrue (comparebyLastName .compare (ayman , rod ) < 0 );
7273 Assertions .assertTrue (comparebyLastName .compare (paul , paul ) == 0 );
73- Assertions .assertTrue (comparebyLastName .compare (ayman , jermaine ) == 0 );
74+ Assertions .assertTrue (comparebyLastName .compare (ayman , jermaine ) > 0 );
7475 }
7576
7677 // Hint:
You can’t perform that action at this time.
0 commit comments