diff options
Diffstat (limited to 'tests/auto/corelib/io/qipaddress/tst_qipaddress.cpp')
-rw-r--r-- | tests/auto/corelib/io/qipaddress/tst_qipaddress.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qipaddress/tst_qipaddress.cpp b/tests/auto/corelib/io/qipaddress/tst_qipaddress.cpp index 6d0a65da92..3e16d3b871 100644 --- a/tests/auto/corelib/io/qipaddress/tst_qipaddress.cpp +++ b/tests/auto/corelib/io/qipaddress/tst_qipaddress.cpp @@ -209,6 +209,12 @@ void tst_QIpAddress::invalidParseIp4_data() // bad hex QTest::newRow("0x1g") << "0x1g"; + // negative numbers + QTest::newRow("-1") << "-1"; + QTest::newRow("-1.1") << "-1.1"; + QTest::newRow("1.-1") << "1.-1"; + QTest::newRow("1.1.1.-1") << "1.1.1.-1"; + // letters QTest::newRow("abc") << "abc"; QTest::newRow("1.2.3a.4") << "1.2.3a.4"; |