URITests : failing unit test #1468

issue gavinandresen opened this issue on June 15, 2012
  1. gavinandresen commented at 12:52 AM on June 15, 2012: contributor

    ********* Start testing of URITests ********* Config: Using QTest library 4.7.4, Qt 4.7.4 PASS : URITests::initTestCase() FAIL! : URITests::uriTests() 'GUIUtil::parseBitcoinURI(uri, &rv)' returned FALSE. () Loc: [src/qt/test/uritests.cpp(24)] PASS : URITests::cleanupTestCase() Totals: 2 passed, 1 failed, 0 skipped ********* Finished testing of URITests *********

    To get the unit tests compiling I had to:

    diff --git a/src/qt/test/uritests.cpp b/src/qt/test/uritests.cpp index 70c20be..86936d4 100644 --- a/src/qt/test/uritests.cpp +++ b/src/qt/test/uritests.cpp @@ -47,7 +47,7 @@ void URITests::uriTests() uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=100&label=Wikipedia Example")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));

    • QVERIFY(rv.amount == 10000000000);
    • QVERIFY(rv.amount == 10000000000LL); QVERIFY(rv.label == QString("Wikipedia Example"));

    uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?message=Wikipedia Example Address"));

  2. laanwj commented at 6:23 AM on June 15, 2012: member

    Huh, how can that have passed for so long?

  3. laanwj commented at 11:04 AM on September 26, 2012: member

    Passes now, closing

    ********* Start testing of URITests *********
    Config: Using QTest library 4.8.1, Qt 4.8.1
    PASS   : URITests::initTestCase()
    PASS   : URITests::uriTests()
    PASS   : URITests::cleanupTestCase()
    Totals: 3 passed, 0 failed, 0 skipped
    ********* Finished testing of URITests *********
    
  4. laanwj closed this on Sep 26, 2012

  5. lateminer referenced this in commit 5b2440582f on Jan 22, 2019
  6. lateminer referenced this in commit 8860401a75 on May 6, 2020
  7. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me