TheAlgorithms/F-Sharp

`MinCostStringConversionTests` is currently breaking the automated tests

Opened this issue · 0 comments

64J0 commented

Description:

When running the automated tests locally, using dotnet test, I noticed that the MinCostStringConversionTests are breaking and raising exceptions.

The logs with more information:

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
  Failed assembleTransformation (abbbaba,abbba) [22 ms]
  Error Message:
   Test method Algorithms.Tests.Strings.MinCostStringConversionTests.assembleTransformation threw exception: 
System.Reflection.TargetParameterCountException: Parameter count mismatch.
  Stack Trace:
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)

  Failed assembleTransformation (ababa,ababa) [< 1 ms]
  Error Message:
   Test method Algorithms.Tests.Strings.MinCostStringConversionTests.assembleTransformation threw exception: 
System.Reflection.TargetParameterCountException: Parameter count mismatch.
  Stack Trace:
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)


Failed!  - Failed:     2, Passed:   176, Skipped:     0, Total:   178, Duration: 315 ms - Algorithms.Tests.dll (net6.0)

Due to it, this test is currently commented.

We must uncomment this test and fix the implementation to make it work properly.