diff options
author | David Schulz <david.schulz@qt.io> | 2023-05-09 14:08:41 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2023-05-11 05:53:49 +0000 |
commit | 5b0c3258bb56fb4de71c28340857761641fe9aa7 (patch) | |
tree | f03eeb3eb04b86f5e37123fd88c46e218e1ca87d /tests | |
parent | edeea10e6a4aa2eeec50f6974495099520a66a47 (diff) | |
download | qt-creator-5b0c3258bb56fb4de71c28340857761641fe9aa7.tar.gz |
Utils: Make column of LineColumn consistently 0-based
Change-Id: I4ab153d1c55653936efbcdc13ac04463185930e0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/utils/filepath/tst_filepath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/utils/filepath/tst_filepath.cpp b/tests/auto/utils/filepath/tst_filepath.cpp index 6e11ddb71c..f2ecac2bb6 100644 --- a/tests/auto/utils/filepath/tst_filepath.cpp +++ b/tests/auto/utils/filepath/tst_filepath.cpp @@ -1095,7 +1095,7 @@ void tst_filepath::linkFromString_data() QTest::addColumn<int>("column"); QTest::newRow("no-line-no-column") - << QString("someFile.txt") << FilePath("someFile.txt") << -1 << -1; + << QString("someFile.txt") << FilePath("someFile.txt") << 0 << -1; QTest::newRow(": at end") << QString::fromLatin1("someFile.txt:") << FilePath("someFile.txt") << 0 << -1; QTest::newRow("+ at end") << QString::fromLatin1("someFile.txt+") << FilePath("someFile.txt") @@ -1121,7 +1121,7 @@ void tst_filepath::linkFromString_data() QTest::newRow("+line-+column") << QString::fromLatin1("/some/path/file.txt+142+33") << FilePath("/some/path/file.txt") << 142 << 32; QTest::newRow("( at end") << QString::fromLatin1("/some/path/file.txt(") - << FilePath("/some/path/file.txt") << -1 << -1; + << FilePath("/some/path/file.txt") << 0 << -1; QTest::newRow("(42 at end") << QString::fromLatin1("/some/path/file.txt(42") << FilePath("/some/path/file.txt") << 42 << -1; QTest::newRow("(42) at end") << QString::fromLatin1("/some/path/file.txt(42)") |