Fix the REPL examples documentation link (#2003)

This commit is contained in:
Fuad Rabbi authored and GitHub committed 2026-11-24 17:38:29 +01:00
1 parent 069c891ac8
commit c254bfbabe
2 files changed
+8 -2

No files matched your search

@@ -95,7 +95,7 @@ internal object ReplMessages {
For more examples, see the Language Reference${if (isMacOs()) " (Command+Double-click the link below)" else ""}:
${Release.current().documentation().homepage()}language-reference/
https://pkl-lang.org/main/current/language-reference/index.html
"""
.trimIndent()
@@ -1,5 +1,5 @@
/*
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
* Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -73,4 +73,10 @@ class ReplMessagesTest {
assertThat(responses.size).isEqualTo(1)
assertThat(responses).hasOnlyElementsOfType(ReplResponse.EvalError::class.java)
}
@Test
fun `examples link to the current language reference`() {
assertThat(ReplMessages.examples.trimEnd().lines().last())
.isEqualTo("https://pkl-lang.org/main/current/language-reference/index.html")
}
}