Skip to content

Commit

Permalink
Corrected unit tests for non en-US system
Browse files Browse the repository at this point in the history
didnt break current behavior, but Culture should be handled explicitely
through the API.
  • Loading branch information
Thieum committed Sep 4, 2013
1 parent 9cc31eb commit 6901edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimpleExpressionEvaluator/ExpressionEvaluator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
Expand Down Expand Up @@ -227,7 +228,7 @@ private Expression ReadOperand(TextReader reader)
}
}

return Expression.Constant(decimal.Parse(operand));
return Expression.Constant(decimal.Parse(operand, CultureInfo.InvariantCulture));
}

private Operation ReadOperation(TextReader reader)
Expand Down

0 comments on commit 6901edd

Please sign in to comment.