How a rule fails if it doesn't meet the minimum match count.

ID: 948

				
					using uCalcSoftware;

var uc = new uCalc();
var t = uc.NewTransformer();
var ruleA = t.FromTo("a", "A");
ruleA.Minimum = 3;

Console.WriteLine("--- Case 1: Fails (only 2 'a's) ---");
t.Transform("a b a b c");
Console.WriteLine($"Result: {t}");
Console.WriteLine($"Matches Found: {t.Matches.Count()}");

Console.WriteLine("");
Console.WriteLine("--- Case 2: Succeeds (3 'a's) ---");
t.Transform("a b a b a c");
Console.WriteLine($"Result: {t}");
Console.WriteLine($"Matches Found: {t.Matches.Count()}");
				
			
--- Case 1: Fails (only 2 'a's) ---
Result: a b a b c
Matches Found: 0

--- Case 2: Succeeds (3 'a's) ---
Result: A b A b A c
Matches Found: 3
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   auto ruleA = t.FromTo("a", "A");
   ruleA.Minimum(3);

   cout << "--- Case 1: Fails (only 2 'a's) ---" << endl;
   t.Transform("a b a b c");
   cout << "Result: " << t << endl;
   cout << "Matches Found: " << t.Matches().Count() << endl;

   cout << "" << endl;
   cout << "--- Case 2: Succeeds (3 'a's) ---" << endl;
   t.Transform("a b a b a c");
   cout << "Result: " << t << endl;
   cout << "Matches Found: " << t.Matches().Count() << endl;
}
				
			
--- Case 1: Fails (only 2 'a's) ---
Result: a b a b c
Matches Found: 0

--- Case 2: Succeeds (3 'a's) ---
Result: A b A b A c
Matches Found: 3
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t = uc.NewTransformer()
      Dim ruleA = t.FromTo("a", "A")
      ruleA.Minimum = 3
      
      Console.WriteLine("--- Case 1: Fails (only 2 'a's) ---")
      t.Transform("a b a b c")
      Console.WriteLine($"Result: {t}")
      Console.WriteLine($"Matches Found: {t.Matches.Count()}")
      
      Console.WriteLine("")
      Console.WriteLine("--- Case 2: Succeeds (3 'a's) ---")
      t.Transform("a b a b a c")
      Console.WriteLine($"Result: {t}")
      Console.WriteLine($"Matches Found: {t.Matches.Count()}")
   End Sub
End Module
				
			
--- Case 1: Fails (only 2 'a's) ---
Result: a b a b c
Matches Found: 0

--- Case 2: Succeeds (3 'a's) ---
Result: A b A b A c
Matches Found: 3