MongoDBのインストール:Mac OS Xの場合
Mac OS Xなら homebrew で楽々です。
名前を変えました
最近MongoDBをいじっていますので、メモ用にこの日記を使おうと思います。
とりあえず日記のタイトルを変えて仕切り直しです。
flexmock(0.3.2)
1 つだけテスト失敗。。ブロックを引っ張りまわしたりしてややこしい。
date@assam flexmock-0.3.2 $ /usr/local/yarv/bin/rake (in /home/date/tmp/flexmock-0.3.2) /usr/local/yarv/bin/ruby-yarv -w -Ilib "/usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/test_class_interception.rb" "test/test_example.rb" "test/test_mock.rb" "test/test_naming.rb" "test/test_record_mode.rb" "test/test_samples.rb" "test/test_should_receive.rb" "test/test_tu_integration.rb" Loaded suite /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader Started .................................................................................................E................ Finished in 0.069639 seconds. 1) Error: test_recording_mode_handles_multiple_returns(TestRecordMode): NoMethodError: undefined method `shift' for 0:Fixnum ./test/test_record_mode.rb:44:in `block (3 levels) in test_recording_mode_handles_multiple_returns' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:467:in `nil?' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:467:in `call' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:467:in `verify_call' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:276:in `call' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:104:in `block in method_missing' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:221:in `mock_wrap' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:101:in `method_missing' ./test/test_record_mode.rb:46:in `call' ./test/test_record_mode.rb:46:in `block in test_recording_mode_handles_multiple_returns' /home/date/tmp/flexmock-0.3.2/lib/flexmock.rb:189:in `use' ./test/test_record_mode.rb:41:in `test_recording_mode_handles_multiple_returns' 114 tests, 120 assertions, 0 failures, 1 errors rake aborted! Command failed with status (1): [/usr/local/yarv/bin/ruby-yarv -w -Ilib "/u...] (See full trace by running task with --trace)
Ruby Fixed Width Fields(0.1)
date@assam FixedWidthFields-0.1 $ ruby-yarv -I./lib test/testFixed.rb Loaded suite test/testFixed Started ....... Finished in 0.01413 seconds. 7 tests, 11 assertions, 0 failures, 0 errors
FixedPt(0.0.1)
テストを実行すると NotImplementedError が連発する。まだ作りかけのようだ。
RubyFIT(1.1)
float との比較の挙動が 1.8 などとは違う。報告してみた。[yarv-dev:1072]
date@assam fit-1.1 $ /usr/local/yarv/bin/rake (in /home/date/tmp/fit-1.1) /usr/local/yarv/bin/ruby-yarv -Ilib:test "/usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/all_tests.rb" Loaded suite /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader Started .....................................FF............ Finished in 1.634258 seconds. 1) Failure: test_avogadro_number(Fit::ScientificDoubleTest) [/home/date/tmp/fit-1.1/test/scientific_double_test.rb:26]: <6.02e+23> expected but was <#<Fit::ScientificDouble:0x2ae2d4a0 @precision=5.00000000000012e+20, @value=6.02e+23>>. 2) Failure: test_pi_number(Fit::ScientificDoubleTest) [/home/date/tmp/fit-1.1/test/scientific_double_test.rb:14]: <3.141592653> expected but was <#<Fit::ScientificDouble:0x2ae59820 @precision=0.00499999999999989, @value=3.14>>. 51 tests, 197 assertions, 2 failures, 0 errors rake aborted! Command failed with status (1): [/usr/local/yarv/bin/ruby-yarv -Ilib:test "...] (See full trace by running task with --trace)