This shows you the differences between two versions of the page.
|
dss:laboratoare:01 [2019/08/14 15:06] razvan.nitu1305 [Unittests] |
dss:laboratoare:01 [2019/08/14 15:07] (current) razvan.nitu1305 [Unittests] |
||
|---|---|---|---|
| Line 529: | Line 529: | ||
| unittest | unittest | ||
| { | { | ||
| - | Sum sum = new Sum; | + | Sum sum; |
| assert(sum.add(3,4) == 7); | assert(sum.add(3,4) == 7); | ||
| assert(sum.add(-2,0) == -2); | assert(sum.add(-2,0) == -2); | ||