Fix tests to reflect refactoring
This commit is contained in:
parent
5268d4ee81
commit
2d4accc1c3
2 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using AspectedRouting.IO.itinero1;
|
||||
using AspectedRouting.IO.LuaSkeleton;
|
||||
using AspectedRouting.Language;
|
||||
using AspectedRouting.Language.Functions;
|
||||
using Xunit;
|
||||
|
@ -21,7 +22,7 @@ namespace AspectedRouting.Test
|
|||
}
|
||||
);
|
||||
|
||||
var luaPrinter = new LuaPrinter(new Context());
|
||||
var luaPrinter = new LuaSkeleton(new Context());
|
||||
var result = luaPrinter.MappingToLua(mapping);
|
||||
|
||||
Assert.Equal(
|
||||
|
@ -44,7 +45,7 @@ namespace AspectedRouting.Test
|
|||
)
|
||||
}
|
||||
);
|
||||
var luaPrinter = new LuaPrinter(new Context());
|
||||
var luaPrinter = new LuaSkeleton(new Context());
|
||||
var result = luaPrinter.MappingToLua(mapping);
|
||||
Assert.Equal("{\n a = {\n b = 42\n }\n}", result);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace AspectedRouting.Test
|
|||
{"ferry", "yes"}
|
||||
};
|
||||
|
||||
Assert.Equal("tags -> double", string.Join(", ", aspect.Types));
|
||||
Assert.Equal("tags -> pdouble", string.Join(", ", aspect.Types));
|
||||
Assert.Equal(42d, new Apply(aspect, new Constant(tags)).Evaluate(null));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue