Skip to content

Commit 3d51ac3

Browse files
committedDec 30, 2018
doc update
1 parent 47d043e commit 3d51ac3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎README.md

+10
Original file line numberDiff line numberDiff line change
@@ -326,4 +326,14 @@ and functional interfaces to design API
326326
327327
}
328328
}
329+
```
330+
* tests
331+
```
332+
given:
333+
def calculator = new SalaryCalculator().with(SalaryRules.BONUS)
334+
.with(SalaryRules.ADDITION)
335+
.with(SalaryRules.TAX)
336+
337+
expect:
338+
calculator.calculate(1000) == 1053
329339
```

0 commit comments

Comments
 (0)
Failed to load comments.