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@226 | 1 | #!/usr/bin/env python |
paul@226 | 2 | |
paul@226 | 3 | def e(self, x): |
paul@226 | 4 | return x |
paul@226 | 5 | |
paul@226 | 6 | class C: |
paul@226 | 7 | e = e |
paul@226 | 8 | |
paul@226 | 9 | def test(self, x): |
paul@226 | 10 | return self.e(x) |
paul@226 | 11 | |
paul@226 | 12 | c = C() |
paul@228 | 13 | result_321 = c.test(321) |
paul@226 | 14 | |
paul@226 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |