Remove unnecessary functions in example
This commit is contained in:
parent
500b3f0d8c
commit
9ff53f1803
2 changed files with 3 additions and 15 deletions
|
|
@ -1,10 +1,4 @@
|
|||
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)
|
||||
let addOne value = value - 1
|
||||
|
|
|
|||
|
|
@ -8,20 +8,14 @@ type CalculatorTests() =
|
|||
[<Fact>]
|
||||
[<MutationCase("""
|
||||
diff --git a/Example.Tests/Calculator.fs b/Example.Tests/Calculator.fs
|
||||
index cfcce3b..39be7f3 100644
|
||||
index 6f0c515..030e391 100644
|
||||
--- a/Example.Tests/Calculator.fs
|
||||
+++ b/Example.Tests/Calculator.fs
|
||||
@@ -1,7 +1,7 @@
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Example
|
||||
|
||||
module Calculator =
|
||||
- let addOne value = value + 1
|
||||
+ let addOne value = value - 1
|
||||
|
||||
let absoluteDifference left right =
|
||||
if left >= right then left - right else right - left
|
||||
|
||||
member _.AddOne_increments() =
|
||||
Assert.Equal(42, Calculator.addOne 41)
|
||||
""")>]
|
||||
member _.AddOne_increments() = Assert.Equal(42, Calculator.addOne 41)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue