More invariant-cultures in toString, tests now work, fix #22
This commit is contained in:
parent
cb90b4c57c
commit
499ede6ae3
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using AspectedRouting.IO.LuaSkeleton;
|
||||
using AspectedRouting.IO.LuaSnippets;
|
||||
|
@ -45,7 +46,7 @@ namespace AspectedRouting.IO.itinero2
|
|||
var exprInLua = _skeleton.ToLua(exprSpecialized);
|
||||
if (exprInLua.Contains("constRight") || exprInLua.Contains("firstArg"))
|
||||
throw new Exception("Not optimized properly:" + exprSpecialized.Repr());
|
||||
aspects.Add(weight + " * " + exprInLua);
|
||||
aspects.Add(weight.ToString(CultureInfo.InvariantCulture) + " * " + exprInLua.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
var scalingFactor = Funcs.Default.Apply(new Constant(Typs.Double, 1.0), _profile.ScalingFactor, tags)
|
||||
|
|
Loading…
Add table
Reference in a new issue