diff options
author | robot-piglet <[email protected]> | 2025-08-27 16:05:23 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-08-27 16:29:56 +0300 |
commit | ef131334f3222e3a8a912f9359dd8eb06aa3fdef (patch) | |
tree | 8cc8f7910737d8682b2f4c8cdd94a7bd4a05c9cf /yql/essentials/utils/docs/page_ut.cpp | |
parent | fa0a88cd1bd00dfa73f6fad555bc22e317b4f53b (diff) |
Intermediate changes
commit_hash:1066ed9de0db7eb7f0894ed356ce329abbb45f1a
Diffstat (limited to 'yql/essentials/utils/docs/page_ut.cpp')
-rw-r--r-- | yql/essentials/utils/docs/page_ut.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yql/essentials/utils/docs/page_ut.cpp b/yql/essentials/utils/docs/page_ut.cpp index 2f19512f045..ede92785140 100644 --- a/yql/essentials/utils/docs/page_ut.cpp +++ b/yql/essentials/utils/docs/page_ut.cpp @@ -25,10 +25,19 @@ Get the value for an expression specified as an argument, for one of the table r Gives no guarantee of which row is used. It's similar to the [any()](https://clickhouse.tech/docs/en/sql-reference/aggregate-functions/reference/any/) function in ClickHouse. + +{% note alert %} + +If one of the compared arguments is 0.0, the function always returns false. + +{% endnote %} + +End. )"; TPages pages = {{"builtins/window", ParseMarkdownPage(markdown)}}; pages = Resolved(std::move(pages), "https://ytsaurus.tech/docs/en/yql"); + pages = ExtendedSyntaxRemoved(std::move(pages)); TVector<TString> changes = { "[separate article](https://ytsaurus.tech/docs/en/yql/builtins/window/../../syntax/window)", @@ -41,6 +50,11 @@ function in ClickHouse. UNIT_ASSERT_STRING_CONTAINS(pages["builtins/window"].Text, changes.at(1)); UNIT_ASSERT_STRING_CONTAINS(pages["builtins/window"].Text, changes.at(2)); UNIT_ASSERT_STRING_CONTAINS(pages["builtins/window"].Text, changes.at(3)); + + UNIT_ASSERT_STRING_CONTAINS(pages["builtins/window"].Text, "the function always returns false"); + UNIT_ASSERT_STRING_CONTAINS(pages["builtins/window"].Text, "End."); + UNIT_ASSERT(!pages["builtins/window"].Text.Contains("{% note alert %}")); + UNIT_ASSERT(!pages["builtins/window"].Text.Contains("{% endnote %}")); } } // Y_UNIT_TEST_SUITE(PageTests) |