[#35406] RE: win32ole で excel が終了しない — "Oka Yasushi" <oka@...>

こんにちは、岡といいます。

20 messages 2002/06/19
[#35407] Re: win32ole で excel が終了しない — Takashi Kanai <kanai@...4u.or.jp> 2002/06/19

金井です。

[#35408] Re: win32ole で excel が終了しない — Takashi Kanai <kanai@...4u.or.jp> 2002/06/19

金井です。

[#35412] Re: win32ole で excel が終了しない — "NAKAMURA, Hiroshi" <nakahiro@...> 2002/06/20

なひです。

[#35418] Re: win32ole で excel が終了しない — Takashi Kanai <kanai@...4u.or.jp> 2002/06/20

金井です。

[#35419] Re: win32ole で excel が終了しない — nobu.nakada@... 2002/06/21

なかだです。

[#35480] Re: 1.7 系を使っていますが、5月頃は式展開内のコメントが使えていましたが、今は使えなくなっていますね。 — "井上 浩一" <kyoui32@...>

=1B$B0f>e$G$9!#=1B(B

12 messages 2002/06/28
[#35490] Re: 1.7 系を使っていますが、5月頃は式展開内のコメントが使えていましたが、今は使えなくなっていますね。 — "Inoue" <rubyist@117.ne.jp> 2002/06/28

井上です。

[ruby-list:35397] RubyUnit: Extended assert module and stacktrace

From: "Shirai,Kaoru" <shirai@...1jp.com>
Date: 2002-06-18 08:46:05 UTC
List: ruby-list #35397
 白井です。

  RubyUnit 0.5.4 (+Ruby 1.6.7) を使用しています。以下のように、自分なりに
拡張した assert メソッド群をまとめたモジュールを作りたいのですが、
RUNIT::AssertionFailedError 例外のスタックトレースが assert メソッドの呼び
出し位置からのものになりません。

 実装の仕方は RUNIT::Assert 内の assert メソッド群の実装と変わりません。
なぜ、 RUNIT::Assert#assert* メソッドと違いが出てくるのでしょうか。

  module MyAssert
    include RUNIT::Assert

    def assert_if(obj, message="")
      unless obj then
        assert_fail
	msg = build_message(message) {
	  "object is not true"
	}
	raise_assertion_error(msg)
      end
    end

    def assert_unless(obj, message="")
      setup_assert
      if obj then
	msg = build_message(message) {
	  "object is not false"
	}
	raise_assertion_error(msg)
      end
    end

  end #/MyAssert

  class MyTestCase < RUNIT::TestCase
    include MyAssert
    ...
  end #/MyTestCase

-- 
shirai@p1jp.com

Shirai,Kaoru
  PlusOne Co.,Ltd

In This Thread

Prev Next