Skip to content

Commit

Permalink
Fix Contains persian comma problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd committed Dec 25, 2023
1 parent 2d87d16 commit 5df1964
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/skUnit/Scenarios/Parsers/KernelAssertionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static IKernelAssertion Parse(string text, string type)
{
"condition" => new HasConditionAssertion() { Condition = text },
"similar" => new AreSameAssertion() { ExpectedAnswer = text },
"contains" => new ContainsAllAssertion() { Texts = text.Split(',') },
"contains" => new ContainsAllAssertion() { Texts = text.Split(',', '،') },
"containsall" => new ContainsAllAssertion() { Texts = text.Split(',', '،') },
"containsany" => new ContainsAnyAssertion() { Texts = text.Split(',', '،') },
_ => throw new InvalidOperationException($"Not valid assert type: {type}")
Expand Down

0 comments on commit 5df1964

Please sign in to comment.