stepthom / math-fun

Just testing out some fun with mathematics.
2 stars 2 forks source link

Sort terms #8

Closed ajslater closed 11 years ago

ajslater commented 11 years ago

Sorting of terms by implementing java Comparable interface on Terms and using the Collections sort function.

stepthom commented 11 years ago

Actually, this isn't quite right. The terms should be sorted in descending order. Right now they are descending in ascending order.

stepthom commented 11 years ago

In addition, issue #3 requests some unit tests to test the functionality of addTerm(). Please add those in there.

ajslater commented 11 years ago

Fixed the Sort order and added a unit test. The test can be run with 'ant test', of course.

stepthom commented 11 years ago

:+1: Thanks AJ, looks perfect.