From 3f194ba9d003eb70eacdfbb31b32b43642d0cefd Mon Sep 17 00:00:00 2001 From: Burke Davison Date: Tue, 26 Sep 2023 12:21:10 -0400 Subject: [PATCH] chore: ApiVersion.toString test --- .../src/test/java/com/microsoft/util/ApiVersionTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/third_party/docfx-doclet-143274/src/test/java/com/microsoft/util/ApiVersionTest.java b/third_party/docfx-doclet-143274/src/test/java/com/microsoft/util/ApiVersionTest.java index 2be79e0d..f70fe3dd 100644 --- a/third_party/docfx-doclet-143274/src/test/java/com/microsoft/util/ApiVersionTest.java +++ b/third_party/docfx-doclet-143274/src/test/java/com/microsoft/util/ApiVersionTest.java @@ -106,4 +106,10 @@ public void testRecommendation_doesNotAllowEmptyInput() { assertThrows( IllegalArgumentException.class, () -> ApiVersion.getRecommended(Collections.emptyList())); } + + @Test + public void testToString() { + assertThat(parse("v1").toString()).isEqualTo("v1"); + assertThat(parse("v1p0").toString()).isEqualTo("v1p0"); + } }