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 | class C: |
paul@219 | 4 | def __init__(self, value): |
paul@219 | 5 | self.instattr = value |
paul@219 | 6 | |
paul@219 | 7 | def update(self, value): |
paul@219 | 8 | self.attr = value |
paul@219 | 9 | |
paul@219 | 10 | c = C(789) |
paul@219 | 11 | c.update(987) |
paul@228 | 12 | result_789 = c.instattr |
paul@228 | 13 | result_987 = c.attr |
paul@219 | 14 | |
paul@219 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |