Skip to content

Commit

Permalink
#52 - Implement feature extractors from GESIS paper
Browse files Browse the repository at this point in the history
- added more tests for conceptLabelLanguage
  • Loading branch information
maxxkia committed Sep 19, 2017
1 parent 824d102 commit 91da8f6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public void testContainsConceptLabel()
Assert.assertTrue(thesoz.containsConceptLabel("abduction"));
// Check an altLabel
Assert.assertTrue(thesoz.containsConceptLabel("university drop-out"));

Assert.assertFalse(thesoz.containsConceptLabel("this should not really be there :)"));
}

Expand All @@ -30,5 +31,9 @@ public void testContainsConceptLabelLanguage()
Assert.assertTrue(thesoz.containsConceptLabel("abduction", "en"));
Assert.assertTrue(thesoz.containsConceptLabel("Studienabbrecher", "de"));
Assert.assertTrue(thesoz.containsConceptLabel("étudiant qui abandonne ses études", "fr"));

Assert.assertFalse(thesoz.containsConceptLabel("Studienabbrecher", "fr"));
Assert.assertFalse(thesoz.containsConceptLabel("Studienabbrecher", "en"));
Assert.assertFalse(thesoz.containsConceptLabel("étudiant qui abandonne ses études", "en"));
}
}

0 comments on commit 91da8f6

Please sign in to comment.