Data-driven script evaluation unit tests. #1121

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:scripttest changing 3 files +253 −0
  1. gavinandresen commented at 2:08 AM on April 18, 2012: contributor

    I created a little format for storing scriptSigs/scriptPubKeys, so it is easy to exercise the Script opcodes.

    This is part of a bigger scheme to launch a new testnet, with blocks before a first checkpoint that are full of transactions with interesting Script test cases; I'll be working next on a hacked bitcoind that knows how to take these test cases and turn them into transactions.

  2. laanwj commented at 5:36 AM on April 18, 2012: member

    ACK

  3. in src/test/script_tests.cpp:None in ef2f33e332 outdated
      48 | +    split(words, s, is_any_of(" \t\n"), token_compress_on);
      49 | +
      50 | +    BOOST_FOREACH(string w, words)
      51 | +    {
      52 | +        if (all(w, is_digit()) ||
      53 | +            starts_with(w, "-") && all(string(w.begin()+1, w.end()), is_digit()))
    


    sipa commented at 11:46 PM on April 20, 2012:

    test/script_tests.cpp: In function ‘CScript ParseScript(std::string)’: test/script_tests.cpp:53:80: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]

  4. sipa commented at 11:49 PM on April 20, 2012: member

    ACK

  5. Data-drive script evaluation unit tests. 8449a8788a
  6. gavinandresen referenced this in commit febe76e316 on Apr 21, 2012
  7. gavinandresen merged this on Apr 21, 2012
  8. gavinandresen closed this on Apr 21, 2012

  9. coblee referenced this in commit 65626944e0 on Jul 17, 2012
  10. suprnurd referenced this in commit ee60f6e76a on Dec 5, 2017
  11. lateminer referenced this in commit c902825832 on Jan 22, 2019
  12. lateminer referenced this in commit 0216fd3c8a on Dec 25, 2019
  13. Bushstar referenced this in commit b217b235ee on May 5, 2020
  14. DrahtBot 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