Changeset 7953
- Timestamp:
- 11/14/05 03:15:42 (3 years ago)
- svk:copy_cache_prev:
- 10363
- Files:
-
- 3 modified
-
src/Pugs/Lexer.hs (modified) (1 diff)
-
t/operators/quoting.t (modified) (2 diffs)
-
t/syntax/parsing/sub_calls.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r7952 r7953 203 203 charControl :: GenParser Char st Char 204 204 charControl = do{ char 'c' 205 ; code <- upper 205 ; code <- upper <|> char '@' 206 206 ; return (toEnum (fromEnum code - fromEnum '@')) 207 207 } -
t/operators/quoting.t
r6714 r7953 4 4 use Test; 5 5 6 plan 73;6 plan 83; 7 7 8 8 my $foo = "FOO"; … … 271 271 is(@q[0].perl, (p => "moose").perl, ":pair<anglequoted>", :todo<bug>); 272 272 }; 273 274 { # weird char escape sequences 275 is("\d97", "a"); 276 is("\d102oo", "foo"); 277 is("\d123", chr 123); 278 is("\d[12]3", chr(12) ~ "3"); 279 is("\d[12] 3", chr(12) ~ " 3"); 280 281 is("\x41", "A"); 282 is("\o101", "A"); 283 284 is("\c@", "\0"); 285 is("\cA", chr 1); 286 is("\cZ", chr 26); 287 } -
t/syntax/parsing/sub_calls.t
r7625 r7953 4 4 use Test; 5 5 6 plan 19;6 plan 20; 7 7 8 8 # Since these are all parsing tests, they should use eval to ensure all tests … … 57 57 is(eval(q/first.second/), 'firstsecond', '`first.second` means `&second(&first())`'); 58 58 } 59 60 { 61 is(eval(q/"hello".substr: 1, 2/), "el", "listop method"); 62 63 # foo $bar.baz: quux 64 # should be (and is currently) interpreted as: 65 # foo($bar.baz(quux)) 66 # where the alternate interpretation can be achieved by: 67 # foo ($bar.baz): quux 68 # which is interpreted as 69 # $bar.baz.foo(quux) 70 # but we need tests, tests, tests! XXX 71 }
