From c4056f5d5c85057ca022a9fb79b71e06a9ed3e6e Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:09:44 +0100 Subject: [PATCH] Fix tests Upstream changes are described here: https://github.com/jhy/jsoup/issues/1278 They are effectively irrelevant as YT removes the ``"``/attributes anyway. --- .../youtube/YoutubeDescriptionHelperTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeDescriptionHelperTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeDescriptionHelperTest.java index 6e9b19303..49d9c5990 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeDescriptionHelperTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeDescriptionHelperTest.java @@ -11,7 +11,7 @@ import java.util.List; import java.util.function.Function; import java.util.stream.Collectors; -public class YoutubeDescriptionHelperTest { +class YoutubeDescriptionHelperTest { private static void assertRunsToHtml(final String expectedHtml, final List openers, @@ -32,9 +32,9 @@ public class YoutubeDescriptionHelperTest { } @Test - public void testNoRuns() { + void testNoRuns() { assertRunsToHtml( - "abc *a* _c_ <br>
<a href=\"#\">test</a>  &amp;", + "abc *a* _c_ <br>
<a href="#">test</a>  &amp;", List.of(), List.of(), "abc *a* _c_
\u00a0\n\u00a0test &" @@ -42,7 +42,7 @@ public class YoutubeDescriptionHelperTest { } @Test - public void testNormalRuns() { + void testNormalRuns() { assertRunsToHtml( "hello nice test", List.of(new Run("", "", 0), new Run("", "", 3), @@ -54,7 +54,7 @@ public class YoutubeDescriptionHelperTest { } @Test - public void testOverlappingRuns() { + void testOverlappingRuns() { assertRunsToHtml( "0123456789", List.of(new Run("", "", 2), new Run("", "", 4)), @@ -64,7 +64,7 @@ public class YoutubeDescriptionHelperTest { } @Test - public void testTransformingRuns() { + void testTransformingRuns() { final Function tA = content -> "whatever"; final Function tD = content -> Integer.parseInt(content) % 2 == 0 ? "even" : "odd";