GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

PySoy: Atomics: Size Compare

completed by: Nikolay Lazarov

mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh

Write a comparison method for soy.atoms.Size which takes an operator (enum EQ, NE, GT, LT, GE, LE). For EQ/NE, return true if the operator passes on every dimension. For other operators apply it the area of the provided values. Area being the three dimensions (which are not zero) multiplied. So Size(5,1) > Size(2,2) but Size(4,1) != Size(2,2).

Update PySoy and PySoy's unit tests to this new API, also dd a few more tests for the new comparison operators.

While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen.

When you've done, commit your work and post the resulting changeset url to this task.