Skip to content

Commit

Permalink
Progress in #33
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitz committed Nov 25, 2019
1 parent aa9be48 commit 8521fcb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Tests.Runtime.Standard/TestContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
5 changes: 4 additions & 1 deletion Tests.Runtime/TestContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Tests.Shared/TestContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8521fcb

Please sign in to comment.