Commit e0650ab
committed
Merge #417: Add support for writing integration tests that fail
ab79593 Use DescError instead of miniscript::Error (kanishk779)
b446ced Add support for writing integration tests that fail (kanishk779)
Pull request description:
- Earlier we did not have the ability to write integration tests that fail.
- The default behaviour was to panic and stop the execution of the program.
- But in addition to verifying that the code works in the correct cases, we must also ensure that it should generate an appropriate error in incorrect cases.
- Some functions are modified to return Result<T, E> to support this feature.
- Four failing tests have also been added (tests 10-13) to demonstrate this.
ACKs for top commit:
sanket1729:
ACK ab79593
Tree-SHA512: 2f0800194c06325cd32fc81988f88989d412c4d0164d8d3f2105068a16db22a3e25fcdefe9f1c7736739faf765fb1e8adc850f9c524e7dec7c89af4dcca22e472 files changed
+82
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
251 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
252 | 254 | | |
253 | | - | |
254 | | - | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
0 commit comments