Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Arc-huangjingtong committed Aug 13, 2024
1 parent 6f0ad15 commit c05653c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ static List<Card> FLT(IList<Card> cards, Predicate<Card> func)
[TestCase(" 999999 + 999999 ", ExpectedResult = 999999 + 999999)]
[TestCase("9*((1+(1+1)+(1+1))+1+1)", ExpectedResult = 9 * ((1 + (1 + 1) + (1 + 1)) + 1 + 1))]
[TestCase("9*((1+(2+3)*(4+5))+6+7)", ExpectedResult = 9 * ((1 + (2 + 3) * (4 + 5)) + 6 + 7))]
[TestCase("9 * ( ( 1 + 2 * 3 ) /2)", ExpectedResult = 9 * ((1 + 2 * 3) / 2))]
//[TestCase("9 * +5 ", ExpectedResult = 9 * +5)] not support
[TestCase("9 * ( ( 1 + 2 * 3 ) /2)", ExpectedResult = 9 * ((1 + 2 * 3) / 2))]
//[TestCase("9 * +5 ", ExpectedResult = 9 * +5)] not support => 9 * (+5) is support
public static int Test_Arithmetic_Int(string input)
{
var res = (InkValue)Ink.Evaluate(input);
Expand Down
2 changes: 1 addition & 1 deletion Arc.UniInk/Arc.UniInk/UniInk_Speed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public InkSyntaxList CompileLexerAndFill(string expression, int startIndex, int
/// <summary> UniInk Parser : Execute the SyntaxList and return the result object </summary>
public static object ExecuteProcess(InkSyntaxList keys)
{
var res = InputIsScript(keys) ? ProcessList_ScriptsWithIfStatement(keys) : ProcessList(keys, 0, keys.Count - 1);
var res = InputIsScript(keys) ? ProcessList_Scripts(keys) : ProcessList(keys, 0, keys.Count - 1);

return res;
}
Expand Down

0 comments on commit c05653c

Please sign in to comment.