Add example project
This commit is contained in:
parent
eed9190ddb
commit
b05c2dc0a2
4 changed files with 66 additions and 0 deletions
10
example-tests/Example.Tests/Calculator.fs
Normal file
10
example-tests/Example.Tests/Calculator.fs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Example
|
||||
|
||||
module Calculator =
|
||||
let addOne value = value + 1
|
||||
|
||||
let absoluteDifference left right =
|
||||
if left >= right then left - right else right - left
|
||||
|
||||
let isLeapYear year =
|
||||
year % 4 = 0 && (year % 100 <> 0 || year % 400 = 0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue