@@ -114,7 +114,7 @@ void findAllWordsWithFiveLength() {
114
114
void findAllLettersAndDigitsWithLengthThree () {
115
115
String result = regexChecker (crazyRegex .findAllLettersAndDigitsWithLengthThree (), text );
116
116
assertThat (result ).isEqualTo ("\n The\n of\n the\n and\n the\n not\n The\n is\n don\n you\n nk\n nk\n The\n CA\n AK\n PA\n 412" +
117
- "\n 555\n com\n 412\n 555\n 412\n 555\n 646\n 555\n of\n com\n net\n or\n nyu\n edu\n 1Z\n aaa\n Of\n com\n com\n www\n com" +
117
+ "\n 555\n com\n 412\n 555\n 412\n 555\n 646\n 555\n of\n com\n net\n or\n nyu\n edu\n 1Z\n aaa\n Of\n www \ n com\n com\n www\n com" +
118
118
"\n is\n is\n am\n not\n not\n why\n why\n am\n ok\n cat\n cat\n dog\n dog" );
119
119
}
120
120
@@ -144,25 +144,24 @@ void findAllOpenBraces() {
144
144
@ Order (16 )
145
145
void findOnlyResources () {
146
146
String result = regexChecker (crazyRegex .findOnlyResources (), text );
147
- assertThat (result ).isEqualTo ("\n [Google] \n [StackOverflow] \n [Youtube] " );
147
+ assertThat (result ).isEqualTo ("\n Google \n StackOverflow \n Youtube " );
148
148
}
149
149
150
150
@ Test
151
151
@ Order (17 )
152
152
void findOnlyLinksInNote () {
153
153
String result = regexChecker (crazyRegex .findOnlyLinksInNote (), text );
154
- assertThat (result ).isEqualTo ("\n (https://google.com)\n (https://stackoverflow.com)" +
155
- "\n (https://www.youtube.com)" );
154
+ assertThat (result ).isEqualTo ("\n https://www.google.com\n https://stackoverflow.com\n https://www.youtube.com" );
156
155
}
157
156
158
157
@ Test
159
158
@ Order (18 )
160
159
void findOnlyLinksInJson () {
161
160
String result = regexChecker (crazyRegex .findOnlyLinksInJson (), json );
162
161
assertThat (result ).isEqualTo (
163
- "\n http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/fcam/FLB_486265257EDR_F0481570FHAZ00323M_.JPG\" , \ n " +
164
- "http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/fcam/FRB_486265257EDR_F0481570FHAZ00323M_.JPG\" , \ n " +
165
- "http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/rcam/RLB_486265291EDR_F0481570RHAZ00323M_.JPG\" , "
162
+ "\n http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/fcam/FLB_486265257EDR_F0481570FHAZ00323M_.JPG\n " +
163
+ "http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/fcam/FRB_486265257EDR_F0481570FHAZ00323M_.JPG\n " +
164
+ "http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/rcam/RLB_486265291EDR_F0481570RHAZ00323M_.JPG"
166
165
);
167
166
}
168
167
0 commit comments