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 1
1
package com .github .streams .learn .functional_interfaces ;
2
2
3
- import static org .junit .jupiter .api .Assertions .assertFalse ;
4
-
5
3
import com .github .streams .learn .functional_interfaces .ignore .models .Person ;
6
- import java .util .Comparator ;
7
- import java .util .function .IntBinaryOperator ;
8
4
import org .junit .jupiter .api .Assertions ;
9
5
import org .junit .jupiter .api .Disabled ;
10
6
import org .junit .jupiter .api .Test ;
11
7
8
+ import java .util .Comparator ;
9
+ import java .util .function .IntBinaryOperator ;
10
+
11
+ import static org .junit .jupiter .api .Assertions .assertFalse ;
12
+
12
13
class F_ComparatorTest {
13
14
14
15
final Person ayman = new Person ("Ayman" , "Khan" , 51 );
@@ -70,7 +71,7 @@ void comparator03() {
70
71
71
72
Assertions .assertTrue (comparebyLastName .compare (ayman , rod ) < 0 );
72
73
Assertions .assertTrue (comparebyLastName .compare (paul , paul ) == 0 );
73
- Assertions .assertTrue (comparebyLastName .compare (ayman , jermaine ) == 0 );
74
+ Assertions .assertTrue (comparebyLastName .compare (ayman , jermaine ) > 0 );
74
75
}
75
76
76
77
// Hint:
You can’t perform that action at this time.
0 commit comments