Fix bug with ignoring whitespaces at end of expression

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-11-28 13:28:03 -08:00
parent 31f4062b60
commit a59d1fa97e
2 changed files with 52 additions and 43 deletions

View File

@@ -15,6 +15,14 @@ namespace Orchard.Tests.Modules.Scripting {
});
}
[Test]
public void ParserShouldIgnoreWhitespaces() {
var tree = new Parser(" true \n ").Parse();
CheckTree(tree, new object[] {
"const", true,
});
}
[Test]
public void ParserShouldUnderstandBinaryExpressions() {
var tree = new Parser("true+true").Parse();