Changeset 8705 for t/var/caller.t
- Timestamp:
- 01/16/06 18:57:28 (3 years ago)
- Files:
-
- 1 modified
-
t/var/caller.t (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/var/caller.t
r8080 r8705 4 4 use Test; 5 5 6 plan 1 7;6 plan 18; 7 7 8 8 { … … 73 73 74 74 $_ = 23; 75 is bar(), 42, '$_ is implicitly declared "env" (2)' ;75 is bar(), 42, '$_ is implicitly declared "env" (2)', :todo<bug>; 76 76 } 77 77 … … 120 120 env $foo is rw = 42; 121 121 lives_ok { modify() }, 122 'env() vars declared "is rw" are rw when accessed with $CALLER:: (1)' ;122 'env() vars declared "is rw" are rw when accessed with $CALLER:: (1)', :todo<bug>; 123 123 is $foo, 43, 124 'env() vars declared "is rw" are rw when accessed with $CALLER:: (2)' ;124 'env() vars declared "is rw" are rw when accessed with $CALLER:: (2)', :todo<bug>; 125 125 } 126 127 =begin underspecced128 129 # Is $+foo really short for $CALLER::foo? S02 doesn't make this 100% clear.130 126 131 127 { … … 136 132 } 137 133 138 =end underspecced139 140 =cut141 142 134 # Rebinding caller's variables -- legal? 143 135 { … … 146 138 env $foo = 42; 147 139 148 lives_ok { rebind_foo() }, 'rebinding $CALLER:: variables works (1)' ;149 is $foo, 23, 'rebinding $CALLER:: variables works (2)' ;140 lives_ok { rebind_foo() }, 'rebinding $CALLER:: variables works (1)', :todo<bug>; 141 is $foo, 23, 'rebinding $CALLER:: variables works (2)', :todo<bug>; 150 142 $other_var++; 151 is $foo, 24, 'rebinding $CALLER:: variables works (3)' ;143 is $foo, 24, 'rebinding $CALLER:: variables works (3)', :todo<bug>; 152 144 } 153 145
