Trunk/test/ruby/test_eval.rb

[email protected]$G$9!#e(B

e$B!!e(Bmake test-all TESTS=ruby/test_eval e$B$,<:GT$7$^$9!#e(BFixnum
e$B$d$ie(B
NilClass e$B$d$ie(B + instance_eval + class
e$BJQ?t$"$?$j$N5sF0$i$7$$$N$G$9e(B
e$B$,!"2?$,$I$&$^$:$$$N$+$h$/$o$+$j$^$;$s!#e(B

e$B!!65$($F$b$i$($J$$$G$7$g$&$+!#e(B

$ make test-all TESTS=ruby/test_eval
./miniruby …/trunk/runruby.rb --extout=.ext –
“…/trunk/test/runner.rb” --basedir="…/trunk/test" --runner=console
ruby/test_eval
Loaded suite test_eval
Started
E…FEFF…F
Finished in 0.059467 seconds.

  1. Error:
    test_cvar_scope_with_instance_eval(TestEval):
    TypeError: (eval):1:in test_cvar_scope_with_instance_eval': no class variables available /home/ko1/ruby/trunk/test/ruby/test_eval.rb:359:ininstance_eval’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:359:in instance_eval' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:359:intest_cvar_scope_with_instance_eval’

  2. Failure:
    test_fixnum_instance_eval_cvar(TestEval)
    [/home/ko1/ruby/trunk/test/ruby/test_eval.rb:353]:
    exception expected but was
    Class:
    Message: <"(eval):1:in block in test_fixnum_instance_eval_cvar': no class variables available"> ---Backtrace--- /home/ko1/ruby/trunk/test/ruby/test_eval.rb:353:ininstance_eval’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:353:in instance_eval' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:353:inblock in
    test_fixnum_instance_eval_cvar’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:353:in
    `test_fixnum_instance_eval_cvar’


  1. Error:
    test_instance_eval_block_basic(TestEval):
    TypeError: no class variables available
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:179:in block in instance_eval_block_basic_i' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:179:ininstance_eval’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:179:in
    instance_eval_block_basic_i' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:127:inblock in
    forall_TYPE’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:122:in each' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:122:inforall_TYPE’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:166:in
    `test_instance_eval_block_basic’

  2. Failure:
    test_instance_eval_cvar(TestEval)
    [/home/ko1/ruby/trunk/test/ruby/test_eval.rb:200:in block in test_instance_eval_cvar' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:198:ineach’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:198:in
    `test_instance_eval_cvar’]:
    <13> expected but was
    <“class”>.

  3. Failure:
    test_instance_eval_string_basic(TestEval)
    [/home/ko1/ruby/trunk/test/ruby/test_eval.rb:148:in rescue in instance_eval_string_basic_i' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:145:ininstance_eval_string_basic_i’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:127:in block in forall_TYPE' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:122:ineach’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:122:in forall_TYPE' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:132:intest_instance_eval_string_basic’]:
    cannot get cvar from NilClass.
    is not true.

  4. Failure:
    test_nil_instance_eval_cvar(TestEval)
    [/home/ko1/ruby/trunk/test/ruby/test_eval.rb:346]:
    exception expected but was
    Class:
    Message: <"(eval):1:in test_binding': no class variables available"> ---Backtrace--- /home/ko1/ruby/trunk/test/ruby/test_eval.rb:346:ineval’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:346:in eval' /home/ko1/ruby/trunk/test/ruby/test_eval.rb:346:inblock in
    test_nil_instance_eval_cvar’
    /home/ko1/ruby/trunk/test/ruby/test_eval.rb:346:in
    `test_nil_instance_eval_cvar’


13 tests, 198 assertions, 4 failures, 2 errors
make: *** [test-all] Error 1

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs