aboutsummaryrefslogtreecommitdiff
path: root/test/common/rational.h
AgeCommit message (Collapse)Author
2016-02-18COMMON: Add convenience method to Common::Rational for 1:1 ratiosColin Snover
For SCI engine games, ratios may not be normalised and so to avoid extra scaling, there needs to be a way to simply check whether a ratio is 1:1.
2011-02-09COMMON: Reduce overflow risk in Common::Rational += and -= operatorsMax Horn
svn-id: r55839
2010-09-12COMMON: Add unit tests for recently fixed Common::Rational bugsMax Horn
Specifically, the bugs in operators - and / for mixed Rational/int args, fixed in rev #52675, are tested for. svn-id: r52680
2010-09-07TESTS: Add more Rational (in)equality testsWillem Jan Palenstijn
This tests for the bug fixed by r52535, among other things. svn-id: r52617
2010-05-17Use TS_ASSERT_EQUALS in test casesMax Horn
svn-id: r49065
2010-05-17Some tweaks and fixes for Common::RationalMax Horn
* Fix Common::gcd to work with negative input * This fixes a bug in Common::Rational's multiplication code * Add some more basic unit tests (including one which checks for the now fixed multiplication bug) * cleanup svn-id: r49064
2010-05-17Add tests for Common::Rational from patch #2963496 (VideoDecoder Rewrite), ↵Matthew Hoops
also courtesy of DrMcCoy who wrote the main Common::Rational class too svn-id: r49062