From 8521fcb1c7d48d0b97f6e0ff85232723bad7cdf2 Mon Sep 17 00:00:00 2001 From: Zev Spitz Date: Mon, 25 Nov 2019 07:47:14 +0200 Subject: [PATCH] Progress in #33 --- Tests.Runtime.Standard/TestContainer.cs | 9 ++++++++- Tests.Runtime/TestContainer.cs | 5 ++++- Tests.Shared/TestContainer.cs | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Tests.Runtime.Standard/TestContainer.cs b/Tests.Runtime.Standard/TestContainer.cs index 45179d6..8ade845 100644 --- a/Tests.Runtime.Standard/TestContainer.cs +++ b/Tests.Runtime.Standard/TestContainer.cs @@ -9,7 +9,14 @@ namespace ParseTreeVisualizer.Tests { public partial class TestContainer { static TestContainer() { - inputs = new[] { "Simple.java", "FormatterTest.java" }.Select(x => File.ReadAllText(x)).ToArray(); + //inputs = new[] { "Simple.java", "FormatterTest.java" }.Select(x => File.ReadAllText(x)).ToArray(); + + var text = File.ReadAllText("Simple.java"); + inputs = new[] { + text, + text.Substring(0,200) + }; + lexerType = typeof(Java9Lexer); parserType = typeof(Java9Parser); parseMethod = "compilationUnit"; diff --git a/Tests.Runtime/TestContainer.cs b/Tests.Runtime/TestContainer.cs index 6824edd..d787ffc 100644 --- a/Tests.Runtime/TestContainer.cs +++ b/Tests.Runtime/TestContainer.cs @@ -16,7 +16,10 @@ If True Then MsgBox ""hello from path 2"" End If Debug.Print ""still in path 1"" -End Sub" +End Sub", + @"Public Sub DoSomething() + Debug.Print ""hi from path 1"" + If True Then" }; lexerType = typeof(VBALexer); parserType = typeof(VBAParser); diff --git a/Tests.Shared/TestContainer.cs b/Tests.Shared/TestContainer.cs index 49966ea..b51db62 100644 --- a/Tests.Shared/TestContainer.cs +++ b/Tests.Shared/TestContainer.cs @@ -40,7 +40,7 @@ public partial class TestContainer { [Theory] [MemberData(nameof(GetTargetsConfigs))] - public void ConstructVisualizerData_(object target, Config config) { + public void ConstructVisualizerData(object target, Config config) { var vd = new VisualizerData(target, config); }