diff options
author | 2019-01-15 12:44:33 -0500 | |
---|---|---|
committer | 2019-01-15 12:44:33 -0500 | |
commit | 20f131a3f09edf8e1455f20b4f486629147e7eff (patch) | |
tree | 690ee30b62caf76bdc7d45f183382965e4e7bf05 /Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill | |
parent | ViatraSolver as default (diff) | |
download | VIATRA-Generator-20f131a3f09edf8e1455f20b4f486629147e7eff.tar.gz VIATRA-Generator-20f131a3f09edf8e1455f20b4f486629147e7eff.tar.zst VIATRA-Generator-20f131a3f09edf8e1455f20b4f486629147e7eff.zip |
Initial workspace setup
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill')
3 files changed, 39 insertions, 0 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/.VampireLanguageParsingTest.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/.VampireLanguageParsingTest.xtendbin new file mode 100644 index 00000000..dc0af0a6 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/.VampireLanguageParsingTest.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/.gitignore b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/.gitignore new file mode 100644 index 00000000..032d1dcf --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.VampireLanguageParsingTest.java._trace | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.java new file mode 100644 index 00000000..3bce3488 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/xtend-gen/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.java | |||
@@ -0,0 +1,38 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.tests; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.tests.VampireLanguageInjectorProvider; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireModel; | ||
8 | import com.google.inject.Inject; | ||
9 | import org.eclipse.xtend2.lib.StringConcatenation; | ||
10 | import org.eclipse.xtext.testing.InjectWith; | ||
11 | import org.eclipse.xtext.testing.XtextRunner; | ||
12 | import org.eclipse.xtext.testing.util.ParseHelper; | ||
13 | import org.eclipse.xtext.xbase.lib.Exceptions; | ||
14 | import org.junit.Assert; | ||
15 | import org.junit.Test; | ||
16 | import org.junit.runner.RunWith; | ||
17 | |||
18 | @RunWith(XtextRunner.class) | ||
19 | @InjectWith(VampireLanguageInjectorProvider.class) | ||
20 | @SuppressWarnings("all") | ||
21 | public class VampireLanguageParsingTest { | ||
22 | @Inject | ||
23 | private ParseHelper<VampireModel> parseHelper; | ||
24 | |||
25 | @Test | ||
26 | public void loadModel() { | ||
27 | try { | ||
28 | StringConcatenation _builder = new StringConcatenation(); | ||
29 | _builder.append("Hello Xtext!"); | ||
30 | _builder.newLine(); | ||
31 | final VampireModel result = this.parseHelper.parse(_builder); | ||
32 | Assert.assertNotNull(result); | ||
33 | Assert.assertTrue(result.eResource().getErrors().isEmpty()); | ||
34 | } catch (Throwable _e) { | ||
35 | throw Exceptions.sneakyThrow(_e); | ||
36 | } | ||
37 | } | ||
38 | } | ||