kopia lustrzana https://github.com/TeamNewPipe/NewPipe
fixed faling searchengine unittest
rodzic
f54d8d318a
commit
11d3aeb0dd
|
@ -38,7 +38,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
|
|||
super.setUp();
|
||||
SearchEngine engine = new YoutubeSearchEngine();
|
||||
|
||||
result = engine.search("https://www.youtube.com/results?search_query=bla",
|
||||
result = engine.search("bla",
|
||||
0, "de", new Downloader());
|
||||
suggestionReply = engine.suggestionList("hello","de",new Downloader());
|
||||
}
|
||||
|
|
|
@ -246,6 +246,9 @@ public class YoutubeSearchEngine implements SearchEngine {
|
|||
.replace(".", "")
|
||||
.replace(",", "");
|
||||
|
||||
if(Long.parseLong(output) == 30) {
|
||||
Log.d(TAG, "bla");
|
||||
}
|
||||
return Long.parseLong(output);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue