2009-05-25 | Paul Boddie | file changeset files shortlog | Moved some functionality from test.py into the rsvp and micropython modules. Moved test program code into more specific tests, adding support for automated testing into some programs, and adding a test method to the RSVPMachine class. |
paul@219 | 1 | #!/usr/bin/env python |
paul@219 | 2 | |
paul@219 | 3 | def e(self, x): |
paul@219 | 4 | return x |
paul@219 | 5 | |
paul@219 | 6 | class C: |
paul@219 | 7 | e = e |
paul@219 | 8 | |
paul@219 | 9 | c = C() |
paul@219 | 10 | p = c.e # bound C.e |
paul@228 | 11 | result_321 = p(321) |
paul@219 | 12 | |
paul@219 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |