Skip to content

Commit

Permalink
AldorDocProviderTest: Actually test something
Browse files Browse the repository at this point in the history
  • Loading branch information
pbroadbery committed Jan 3, 2017
1 parent 64cc8f8 commit 85f972e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public void testExportDocco() throws Exception {
String docs = docForElement(PsiTreeUtil.findElementOfClassAtOffset(psiFile, program.indexOf("foo();"), AldorIdentifier.class, true));
LOG.info("Docs are: " + docs);
Assert.assertNotNull(docs);
Assert.assertTrue("Doc is " + docs, docs.contains("This is a domain"));
Assert.assertTrue("Doc is " + docs, docs.contains("<p><b>exporter:</b> Dom</b></p>"));
Assert.assertTrue("Doc is " + docs, docs.contains("<p><b>type:</b> () -> Dom</p>"));
});
}

Expand All @@ -98,7 +99,7 @@ public void testImportDocco() throws Exception {
String docs = docForElement(PsiTreeUtil.findElementOfClassAtOffset(psiFile, program.indexOf("abs;"), AldorIdentifier.class, true));
LOG.info("Docs are: " + docs);
Assert.assertNotNull(docs);
Assert.assertTrue("Doc is " + docs, docs.contains("This is a domain"));
Assert.assertTrue("Doc is " + docs, docs.contains("<b>type:</b> AldorInteger -> AldorInteger</p>"));
});
}

Expand Down

0 comments on commit 85f972e

Please sign in to comment.