Fix tests to reflect refactoring

This commit is contained in:
Pieter Vander Vennet 2020-06-10 01:02:37 +02:00
parent 5268d4ee81
commit 2d4accc1c3
2 changed files with 4 additions and 3 deletions

View file

@ -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);
}

View file

@ -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));
}