File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 88import java .util .Comparator ;
99import java .util .List ;
1010
11- public class MeetingRooms {
11+ public class jdalma {
1212
1313 public class Interval {
1414 public int start , end ;
15+
1516 public Interval (int start , int end ) {
1617 this .start = start ;
1718 this .end = end ;
@@ -60,17 +61,19 @@ private boolean usingSort(List<Interval> intervals) {
6061 @ Test
6162 @ DisplayName ("입력받은 간격들의 충돌 여부를 반환한다." )
6263 void name () {
63- Assertions .assertThat (canAttendMeetings (new ArrayList <>() {{
64- add (new Interval (0 ,30 ));
65- add (new Interval (5 ,10 ));
66- add (new Interval (15 ,20 ));
67- }}
68- )).isFalse ();
64+ Assertions .assertThat (canAttendMeetings (new ArrayList <>() {
65+ {
66+ add (new Interval (0 , 30 ));
67+ add (new Interval (5 , 10 ));
68+ add (new Interval (15 , 20 ));
69+ }
70+ })).isFalse ();
6971
70- Assertions .assertThat (canAttendMeetings (new ArrayList <>() {{
71- add (new Interval (5 , 8 ));
72- add (new Interval (9 , 10 ));
73- }}
74- )).isTrue ();
72+ Assertions .assertThat (canAttendMeetings (new ArrayList <>() {
73+ {
74+ add (new Interval (5 , 8 ));
75+ add (new Interval (9 , 10 ));
76+ }
77+ })).isTrue ();
7578 }
7679}
You can’t perform that action at this time.
0 commit comments