Day 16: All tests successful.

autrijus on 2005-02-16T17:47:38

Pugs's t/01basic.t now looks like this:

use v6;

=pod

This is a test file.  Whee!

=cut

say "1..2";
say "ok 1 # Welcome to Pugs!";

sub cool { fine($_) ~ " # We've got " ~ toys }
sub fine { "ok " ~ $_ }
sub toys { "fun and games!" }

say cool 2 # and that's it, folks!

... and yes, it runs with "make test" just fine. More unit tests will be added later, including many TODO ones.

Other stuffs I've finished today:

  • Code literals -- "sub", "pointy" and "bare" variants all works
  • Lexical subroutine declarations via "my sub"
  • Global subroutine and variables work again, via the envGlobal pad
  • The "say", "exit", "die" primitives
  • Bool.perl now prints correct literals (lwall)
  • Blocks under void contexts now evaluates automatically
  • The "..." (dotdotdot) literal

From tomorrow on I'll shift my focus at more documentation and testing stuff, including the first Apocrypha on "how to start hacking Pugs". Also the semester is starting, so it means Bestian won't be able to help hacking it as much as he did; I've also got $real_paying_work to do, so the development speed is expected to slow down a bit.

However little I did, though, I'll try keeping this daily blogging going on as long as possible, as I genuinely believe that this kind of communication is an effective way to push things forward. :-)


great journal

fangwu on 2005-02-16T18:01:22

i registered on use.perl.org just to post a comment. i read your journal reguarly everyday.

you've done an incredible job so far. please keep up, please!

Re:great journal

autrijus on 2005-02-16T18:22:23

Thank you. I will.

autrijus++

sri on 2005-02-16T19:00:06

Great work!