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/src/ca/mcgill/ecse | |
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/src/ca/mcgill/ecse')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/src/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.xtend | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/src/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.xtend b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/src/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.xtend new file mode 100644 index 00000000..6d13b455 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.tests/src/ca/mcgill/ecse/dslreasoner/tests/VampireLanguageParsingTest.xtend | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.tests | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireModel | ||
7 | import com.google.inject.Inject | ||
8 | import org.eclipse.xtext.testing.InjectWith | ||
9 | import org.eclipse.xtext.testing.XtextRunner | ||
10 | import org.eclipse.xtext.testing.util.ParseHelper | ||
11 | import org.junit.Assert | ||
12 | import org.junit.Test | ||
13 | import org.junit.runner.RunWith | ||
14 | |||
15 | @RunWith(XtextRunner) | ||
16 | @InjectWith(VampireLanguageInjectorProvider) | ||
17 | class VampireLanguageParsingTest { | ||
18 | @Inject | ||
19 | ParseHelper<VampireModel> parseHelper | ||
20 | |||
21 | @Test | ||
22 | def void loadModel() { | ||
23 | val result = parseHelper.parse(''' | ||
24 | Hello Xtext! | ||
25 | ''') | ||
26 | Assert.assertNotNull(result) | ||
27 | Assert.assertTrue(result.eResource.errors.isEmpty) | ||
28 | } | ||
29 | } | ||