Changeset 22440 for t

Show
Ignore:
Timestamp:
09/27/08 23:39:32 (2 months ago)
Author:
s1n
Message:

[t/spec] added 8 radix tests that should fail parsing and return 0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S02-literals/radix.t

    r22439 r22440  
    22use Test; 
    33 
    4 plan 182; 
     4plan 190; 
    55 
    66# L<S02/Literals/":10<42>"> 
     
    233233} 
    234234 
     235# tests for _invalid_ string interpretations of radix notations 
     236#?rakudo todo "patch has not been applied, see RT# 59222" 
     237{ 
     238    is +":2.4<01>", 0, "fractional radix parsefail works"; 
     239    is +":10<12f>", 0, "invalid alphabet parsefail works"; 
     240    is +":1b<10>", 0, "invalid radix alphabet parsefail works"; 
     241    is +":10<>", 0, "missing radix conversion number parsefail works"; 
     242    is +":_2<01>", 0, "underscore seperator misuse parsefail works (1)"; 
     243    is +":2<_01>", 0, "underscore seperator misuse parsefail works (2)"; 
     244    is +":2<01_>", 0, "underscore seperator misuse parsefail works (3)"; 
     245    is +":2<1.3>", 0, "invalid radix conversion alphabet parsefail works"; 
     246} 
     247 
    235248# What follows are tests that were moved here from t/syntax/numbers/misc.t 
    236249# feel free to merge them inline into the other tests