From 70eb845ec8058a5746767bb198229f75725f1a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Wed, 29 Apr 2026 17:22:56 -0700 Subject: [PATCH] Update the test for Autolinks so it exposes a genuine problem. PiperOrigin-RevId: 907859747 --- .../google/googlejavaformat/java/JavadocFormattingTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java b/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java index 5f2f12526..1e44c4394 100644 --- a/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java +++ b/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java @@ -1993,11 +1993,10 @@ public void markdownAutolinks() { assume().that(MARKDOWN_JAVADOC_SUPPORTED).isTrue(); String input = """ - /// should be preserved. + ///
is not inside @code}. class Test {} """; - // TODO: find a test case that will break if autolinks are not handled correctly. - // Probably something like: this should not be handled like a code span} + // TODO: the
should trigger a line break since it is not in fact inside {@code ...}. String expected = input; doFormatTest(input, expected); }