Skip to content

Commit

Permalink
Add persian comma for splits
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd committed Dec 24, 2023
1 parent ec744ce commit ecccbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/skUnit/Scenarios/Parsers/KernelAssertionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public static IKernelAssertion Parse(string text, string type)
"condition" => new HasConditionAssertion() { Condition = text },
"similar" => new AreSameAssertion() { ExpectedAnswer = text },
"contains" => new ContainsAllAssertion() { Texts = text.Split(',') },
"containsall" => new ContainsAllAssertion() { Texts = text.Split(',') },
"containsany" => new ContainsAnyAssertion() { 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 ecccbbf

Please sign in to comment.