[psoc-2008] [report] Week 2 report - Adrian
Adrian Kreher
ak10864 at gmail.com
Mon Jun 16 03:49:45 UTC 2008
This week, I handled S12, which covered objects. A majority of the existing
tests existed in t/oo, and some of those tests were adapted from the tests
from the CPAN module Moose. I left most of the tests alone rather than move
them, since that would take a lot of time without adding many new tests. I
may move them in the not so distant future.
I had some difficulties with some of the more advanced aspects of the object
system that I haven't seen before. I was impressed by the 'deferring'
functionality (provided by callsame, callwith, nextsame, nextwith, and ended
by lastcall). This functionality was very easy to understand, but the exact
order was unclear (and Larry++ said that he hasn't decided yet), which made
it difficult to test. I ended up testing for an order that made sense to me,
and it's easy enough to change it if it's wrong. The items that I left in
t/TASKS were similar in that they were not specced enough to be easily
tested.
I usually try running sample code before writing a test case. I was surprised
(and impressed!) when Rakudo had something untested but already implemented.
This week was very productive in the added test department. I added 76 tests
during the week. I modified only around 10 tests, which were a result of
other changes in the spec. Note that my modification count does not include
the tests in the files that I moved. This puts my total tests added at 188.
Next week I begin work on S02, bits and pieces. S02 mentions a lot of things
in Perl 6, so it'll allow me to test pretty much anything that I see. I'll be
spending all of next week on this synopsis, and splitting the week after
between S02 and S03.
This post is online at:
http://auzon.blogspot.com/2008/06/gsoc-2008-week-3-report-s12-objects.html
--
Adrian Kreher
More information about the psoc-2008
mailing list