The attached file is a proposed PMC test suite. Now, of course, PMCs aren't implemented yet, but this will give us a test suite to validate PMCs against behavior once it's been fully specified. The enclosed file tests set/get of PMC variables and the basic operations in almost all combinations. For brevity's sake I assume that testing _p_i_n also tests _p_n_i operations. It tests all of the operations currently in vtable_ops in most reasonable combinations.
Some cases have no test results defined because I'm not sure what it should do, others have none defined because they should generate exceptions but exception strings have yet to be defined for the operation. During the testing I also ran into a few missing comparison operators. There should be a 'undefined' test alongside 'eq' &c so that tests like "set I0,I1;print I1" can be properly evaluated. If the tests get too onerous speed-wise they can always be combined into groups. I've arranged integer-mumeric tests &c so that they can be concatenated into one test block, but I left the tests separate currently because it'll be easier to verify that way. I hope that testing is one of the last obstacles to getting PMCs linked in and created as real operators. I'm working on removing some of the other stumbling blocks later tonight. -Jeff <[EMAIL PROTECTED]>