diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-05-06 11:52:13 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-05-07 11:51:30 -0400 |
commit | 4b331159dfa599eced9f9d4e5780173367b43c74 (patch) | |
tree | fbe103e1f07f4a3687bb09406c0aa13e48946011 /src/test/torcontrol_tests.cpp | |
parent | 05bfee3451d3b3f9aaeda63de75f9d48eecea237 (diff) |
Add unit test NextString, ForEachNoDup functions
Remove testcase generating code from util_SettingsMerge so it can be reused in
new tests.
The hash value expected in util_SettingsMerge changes as a result of this, but
only because the testcases are generated in a different order, not because any
cases are added or removed. It is possible to verify this with:
SETTINGS_MERGE_TEST_OUT=new.txt test/test_bitcoin --run_test=util_tests/util_SettingsMerge
git checkout HEAD~1
make test/test_bitcoin
SETTINGS_MERGE_TEST_OUT=old.txt test/test_bitcoin --run_test=util_tests/util_SettingsMerge
diff -u <(sort old.txt) <(sort new.txt)
The new output is a little more readable, with simpler testcases sorted first.
Diffstat (limited to 'src/test/torcontrol_tests.cpp')
0 files changed, 0 insertions, 0 deletions