Changeset 22472 for t

Show
Ignore:
Timestamp:
10/01/08 16:03:55 (2 months ago)
Author:
moritz
Message:

[t/spec] tests for stringifying True and False (and add smartlink)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S02-builtin_data_types/bool.t

    r22285 r22472  
    44 
    55 
    6 # XXX unspecced but implicit - needs validation 
     6# L<S12/Enums/"Two built-in enums are"> 
    77 
    8 plan 18; 
     8plan 20; 
    99 
    1010# tests True and False are Bool's 
     
    4646is(+Bool::True, '1', 'True numifies to 1'); 
    4747is(+Bool::False, '0', 'False numifies to 0'); 
     48# stringification 
     49is(~Bool::True, '1', 'True stringifies to 1'); 
     50is(~Bool::False, '0', 'False stringifies to 0');