Changeset 21154

Show
Ignore:
Timestamp:
07/02/08 00:37:50 (5 months ago)
Author:
moritz
Message:

[spec] tests for return type of index()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S29-str/index.t

    r21153 r21154  
    44# L<S29/Str/"=item index"> 
    55 
    6 plan 31; 
     6plan 33; 
     7 
     8# Type of return value 
     9isa_ok('abc'.index('b'), StrPos); 
     10isa_ok('abc'.index('d'), StrPos); 
    711 
    812# Simple - with just a single char 
    9  
    1013 
    1114is(index("Hello World", "H"), 0, "One char, at beginning");