Skip to content
Permalink
Browse files

Add test for const token parse

  • Loading branch information...
charlesbetros committed Jul 31, 2019
1 parent 30946d7 commit 1b471c4c910ec7114cd87913e47b49070ffb98ca
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/XSharp.Tests/TokenMap_Should.cs
@@ -59,6 +59,17 @@ public void Parse_Variable_Definition_Keyword_And_Identifier()
Assert.AreEqual(xExpectedTokenCount, xCodePoints.Count);
}

[Test]
public void Parse_Constant_Definition_Keyword_And_Identifier_And_Value()
{
const string xConstantLine = "const Tracing_Off = 0";
const int xExpectedTokenCount = 4;

var xCodePoints = mTokenMap.Parse(xConstantLine);

Assert.AreEqual(xExpectedTokenCount, xCodePoints.Count);
}

[Test]
public void Parse_Comment()
{

0 comments on commit 1b471c4

Please sign in to comment.
You can’t perform that action at this time.