@@ -58,13 +58,6 @@ type MinCostStringConversionTests () =
58
58
let calculatedCost = calculateCost ( operations, copyCost, replaceCost, deleteCost, insertCost)
59
59
Assert.AreEqual ( destinationSubstring, actualDestinationSubstring)
60
60
Assert.AreEqual ( costs.[ i].[ j], calculatedCost)
61
-
62
- [<TestMethod>]
63
- [<DataRow( " abbbaba" , " abbba" ) >]
64
- [<DataRow( " ababa" , " ababa" ) >]
65
- member this.assembleTransformation ( ops : Operation array array , i : int , j : int , expected : Operation array ) =
66
- let actual = MinCostStringConversion.assembleTransformation( ops, i, j)
67
- Assert.AreEqual( expected, actual)
68
61
69
62
static member inputForComputeTransformTables =
70
63
seq {
@@ -102,10 +95,7 @@ type MinCostStringConversionTests () =
102
95
[<DynamicData( nameof( MinCostStringConversionTests.inputForComputeTransformTables)) >]
103
96
member this.computeTransformTables ( sourceString : string , destinationString : string , copyCost : int , replaceCost : int , deleteCost : int , insertCost : int , expected : int array array * Operation array array ) =
104
97
let actual = MinCostStringConversion.computeTransformTables( sourceString, destinationString, copyCost, replaceCost, deleteCost, insertCost)
105
- printfn $" %A {actual}"
106
- printfn " -----"
107
- printfn $" %A {expected}"
108
- Assert.AreEqual( expected, actual)
98
+ Assert.IsTrue(( expected = actual))
109
99
110
100
111
101
0 commit comments