test/ruby/test_continuation.rb: remove duplicated test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-05-08 06:59:38 +00:00
parent 611e287498
commit 7ce9ab664d
2 changed files with 10 additions and 18 deletions

View file

@ -7162,12 +7162,18 @@ parser_yylex(struct parser_params *parser)
if (tokadd_mbchar(c) == -1) return 0;
c = nextc();
} while (parser_is_identchar());
switch (tok()[0]) {
case '@': case '$':
pushback(c);
break;
default:
if ((c == '!' || c == '?') && !peek('=')) {
tokadd(c);
}
else {
pushback(c);
}
}
tokfix();
{

View file

@ -51,19 +51,5 @@ class TestContinuation < Test::Unit::TestCase
c.call
}
end
def test_sort
assert_normal_exit(<<-'End')
require 'continuation'
n = 1000
ary = (1..100).to_a
ary.sort! {|a,b|
callcc {|k| $k = k } if !defined? $k
a <=> b
}
n -= 1
$k.call if 0 < n
End
end
end