Browse Source

fix formatting in tooltips test

pipelines/235045657
Jørgen Lien Sellæg 5 years ago
parent
commit
ead0a8c8b6
  1. 33
      tests/tooltips_test.cpp

33
tests/tooltips_test.cpp

@ -592,7 +592,8 @@ int main() {
* *
* @param timemillis is a number of milliseconds * @param timemillis is a number of milliseconds
* passed since Jan 1, 1970. * passed since Jan 1, 1970.
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == R"(Constructor that sets the time to a given value. g_assert(tooltip->buffer->get_text() == R"(Constructor that sets the time to a given value.
Parameters: Parameters:
@ -604,7 +605,8 @@ Parameters:
* *
* *
* @return Whether @a test is at the end of a line. * @return Whether @a test is at the end of a line.
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == R"(Returns true if test points to the start. Test pointing to the \n of a \r\n pair g_assert(tooltip->buffer->get_text() == R"(Returns true if test points to the start. Test pointing to the \n of a \r\n pair
will not. will not.
@ -615,7 +617,8 @@ Returns Whether test is at the end of a line.)");
* test * test
* \a test * \a test
* test * test
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == "test test test"); g_assert(tooltip->buffer->get_text() == "test test test");
} }
{ {
@ -627,7 +630,8 @@ Returns Whether test is at the end of a line.)");
* *
* More testing * More testing
* end * end
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == R"(Testing g_assert(tooltip->buffer->get_text() == R"(Testing
- t - t
- t2 - t2
@ -645,7 +649,8 @@ More testing end)");
* *
* More testing * More testing
* end * end
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == R"(Testing g_assert(tooltip->buffer->get_text() == R"(Testing
- t - t
@ -663,7 +668,8 @@ More testing end)");
\sa Test(), ~Test(), testMeToo() and publicVar() \sa Test(), ~Test(), testMeToo() and publicVar()
\test testing \test testing
@test testing @test testing
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == R"(A normal member taking two arguments and returning an integer value. g_assert(tooltip->buffer->get_text() == R"(A normal member taking two arguments and returning an integer value.
Parameters: Parameters:
@ -685,7 +691,8 @@ See also Test(), ~Test(), testMeToo() and publicVar()
* Brief description continued. * Brief description continued.
* *
* Detailed description starts here. * Detailed description starts here.
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == R"(Brief description. Brief description continued. Brief description continued. g_assert(tooltip->buffer->get_text() == R"(Brief description. Brief description continued. Brief description continued.
Brief description continued. Brief description continued.
@ -696,7 +703,8 @@ Detailed description starts here.)");
* \code * \code
* int a = 2; * int a = 2;
* \endcode * \endcode
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == "int a = 2;"); g_assert(tooltip->buffer->get_text() == "int a = 2;");
} }
{ {
@ -704,7 +712,8 @@ Detailed description starts here.)");
* @code * @code
* int a = 2; * int a = 2;
* @endcode * @endcode
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == "int a = 2;"); g_assert(tooltip->buffer->get_text() == "int a = 2;");
} }
{ {
@ -714,7 +723,8 @@ Detailed description starts here.)");
* int a = 2; * int a = 2;
* \endcode * \endcode
* test * test
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == "test\nint a = 2;\ntest"); g_assert(tooltip->buffer->get_text() == "test\nint a = 2;\ntest");
} }
{ {
@ -726,7 +736,8 @@ Detailed description starts here.)");
* \endcode * \endcode
* *
* test * test
*/)", true); */)",
true);
g_assert(tooltip->buffer->get_text() == "test\n\nint a = 2;\n\ntest"); g_assert(tooltip->buffer->get_text() == "test\n\nint a = 2;\n\ntest");
} }
{ {

Loading…
Cancel
Save