mkabbasi / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

Unit tests should not test on incorrect values #270

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some of our tests make assertions on obviously incorrect tags.  For example, 
one unit test had maked the POS tag for earthquake as JJ.  Instead of comparing 
on one output string, which is prone to changes in the learner, we should 
factor this into a set of smaller assertions on tokens that are correct.

For an example of how to do this, please refer to the now fixed
cleartk-examples/src/test/java/org/cleartk/examples/pos/NonSequenceExamplePOSAnn
otatorTest.java

Original issue reported on code.google.com by lee.becker on 24 Jan 2012 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by steven.b...@gmail.com on 24 Jul 2012 at 5:45

GoogleCodeExporter commented 9 years ago

Original comment by lee.becker on 17 Feb 2013 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by steven.b...@gmail.com on 3 May 2013 at 8:44

GoogleCodeExporter commented 9 years ago

Original comment by phi...@ogren.info on 15 Mar 2014 at 5:41