Skip to content

Commit 896183d

Browse files
committed
remove trailing spaces
1 parent 6d025d1 commit 896183d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Algorithms.Tests/Strings/MinCostStringConversionTests.fs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ open MinCostStringConversion
66

77
[<TestClass>]
88
type MinCostStringConversionTests () =
9-
9+
1010
let validateAndApply (source: string ) (operations: Operation array) : string =
1111
operations
1212
|> Array.mapFold (fun sourcePosition op ->
@@ -27,7 +27,7 @@ type MinCostStringConversionTests () =
2727
|> Array.choose id
2828
|> Array.map string
2929
|> String.concat ""
30-
30+
3131
let calculateCost (operations: Operation array, copyCost:int, replaceCost:int, deleteCost:int, insertCost:int) =
3232
operations
3333
|> Array.sumBy (function
@@ -36,8 +36,8 @@ type MinCostStringConversionTests () =
3636
| Operation.Delete _ -> deleteCost
3737
| Operation.Insert _ -> insertCost
3838
)
39-
40-
39+
40+
4141
[<TestMethod>]
4242
[<DataRow("", "", 1, 2, 3, 4)>]
4343
[<DataRow("github", "", 1, 2, 3, 4)>]
@@ -48,7 +48,7 @@ type MinCostStringConversionTests () =
4848
[<DataRow("banana", "apple", 3, 1, 2, 4)>]
4949
member this.validateResult (source: string, destination: string, copyCost:int, replaceCost:int, deleteCost:int, insertCost:int) =
5050
let costs, ops = computeTransformTables (source, destination, copyCost, replaceCost, deleteCost, insertCost)
51-
51+
5252
for i = 0 to source.Length do
5353
for j = 0 to destination.Length do
5454
let sourceSubstring = source.Substring(0, i)
@@ -58,7 +58,7 @@ type MinCostStringConversionTests () =
5858
let calculatedCost = calculateCost (operations, copyCost, replaceCost, deleteCost, insertCost)
5959
Assert.AreEqual (destinationSubstring, actualDestinationSubstring)
6060
Assert.AreEqual (costs.[i].[j], calculatedCost)
61-
61+
6262
static member inputForComputeTransformTables =
6363
seq {
6464
yield [|
@@ -96,6 +96,6 @@ type MinCostStringConversionTests () =
9696
member this.computeTransformTables (sourceString:string, destinationString:string, copyCost:int, replaceCost:int, deleteCost:int, insertCost:int, expected:int array array * Operation array array) =
9797
let actual = MinCostStringConversion.computeTransformTables(sourceString,destinationString,copyCost,replaceCost,deleteCost,insertCost)
9898
Assert.IsTrue((expected = actual))
99-
100-
99+
100+
101101

0 commit comments

Comments
 (0)