diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-06-13 23:16:54 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:46:50 +0300 |
| commit | 12eeefcdba1ee392f033f51e6b9826eaae3c4de6 (patch) | |
| tree | 061f3472bfc924dfa05b46f3aeab76b788b86914 /test/core/CommandLineArgumentContainerTest.java | |
| parent | 560e490ea44970edca22181cc2726f0b2ebb82c9 (diff) | |
Add tokenizer, parser and support for certain operations
Diffstat (limited to 'test/core/CommandLineArgumentContainerTest.java')
| -rw-r--r-- | test/core/CommandLineArgumentContainerTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/core/CommandLineArgumentContainerTest.java b/test/core/CommandLineArgumentContainerTest.java new file mode 100644 index 0000000..f6a6ead --- /dev/null +++ b/test/core/CommandLineArgumentContainerTest.java @@ -0,0 +1,26 @@ +package com.jantuomi.interpreter.test.core; + +import com.jantuomi.interpreter.main.core.CommandLineArgumentContainer; +import com.jantuomi.interpreter.main.utils.Utilities; +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertTrue; + +/** + * Created by jan on 10.6.2016. + */ +public class CommandLineArgumentContainerTest { + @Test + public void getSourceFileContents() throws Exception { + CommandLineArgumentContainer c = CommandLineArgumentContainer.getInstance(); + + File basePath = new File(Utilities.getBasePath()); + c.setFile(new File(basePath, "src/com/jantuomi/interpreter/test/resources/test.file")); + String contents = c.getSourceFileContents(); + System.out.println(contents); + assertTrue(contents.contains("###")); + } + +}
\ No newline at end of file |
