-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug when "nie występuje w słowniku" was in comment section. In this case to regex is input from <h1 tag , to KOMENTARZE: . It means: from tag where is name of word to commentary section
- Loading branch information
Damian Panasiuk
committed
Feb 26, 2021
1 parent
26f271c
commit 3a3c646
Showing
5 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
package sjpAPI; | ||
package com.sjp; | ||
|
||
import junit.framework.TestCase; | ||
|
||
import org.junit.Assert; | ||
|
||
public class CurlWrapperTest extends TestCase { | ||
|
||
private CurlWrapper wrapper = new CurlWrapper(); | ||
|
||
public void testIsNOTHeadInOutput() { | ||
String mockCurl = "<head>asdasdsadasd</head> <body>fgdfggfhtyjfhghfgd</body> asfdfhtyhhjdffsdc"; | ||
public void testIsBettwenH1AndCommentSection() { | ||
String mockCurl = "<head>asdasdsadasd</head> <body><h1>fgdfggfhtyjfhghfgd</h1>KOMENTARZE:</body> asfdfhtyhhjdffsdc"; | ||
mockCurl = wrapper.wrappCurl(mockCurl); | ||
assertEquals(mockCurl,"fgdfggfhtyjfhghfgd"); | ||
assertEquals(mockCurl,"<h1>fgdfggfhtyjfhghfgd</h1>"); | ||
|
||
} | ||
} |