diff options
Diffstat (limited to 'tests/auto/debugger/tst_dumpers.cpp')
-rw-r--r-- | tests/auto/debugger/tst_dumpers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 76b23814bb..c3a33eb1ad 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -5441,10 +5441,10 @@ void tst_Dumpers::dumper_data() QTest::newRow("Array") << Data("", - "double a1[3][3];\n" + "double a1[3][4];\n" "for (int i = 0; i != 3; ++i)\n" " for (int j = 0; j != 3; ++j)\n" - " a1[i][j] = i + j;\n" + " a1[i][j] = i + 10 * j;\n" "unused(&a1);\n\n" "char a2[20] = { 0 };\n" @@ -5455,11 +5455,11 @@ void tst_Dumpers::dumper_data() "a2[4] = 0;\n" "unused(&a2);\n") - + Check("a1", Pointer(), "double [3][3]") - + Check("a1.0", "[0]", Pointer(), "double [3]") + + Check("a1", Pointer(), "double[3][4]") + + Check("a1.0", "[0]", Pointer(), "double[4]") + Check("a1.0.0", "[0]", FloatValue("0"), "double") - + Check("a1.0.2", "[2]", FloatValue("2"), "double") - + Check("a1.2", "[2]", Pointer(), "double [3]") + + Check("a1.0.2", "[2]", FloatValue("20"), "double") + + Check("a1.2", "[2]", Pointer(), "double[4]") + Check("a2", Value("\"abcd" + QString(16, 0) + '"'), "char [20]") + Check("a2.0", "[0]", "97", "char") |