Hello!
Thanks to the good work of Peter Ohler, fastest JSON parser so far in Ruby - Oj - is now compiling on Windows!
All tests are passing on Ruby 193p194, which i have installed with RubyInstaller. I have however 5 failures when running tests against tcs Ruby 193p231.
C:\Users\jarmo\Documents\Projects\Ruby\oj>pushd ext\oj && ruby extconf.rb && make && popd
>>>>> Creating Makefile for tcs-ruby version 1.9.3 on i386-mingw32 <<<<<
creating Makefile
generating oj-i386-mingw32.def
compiling cache.c
<command-line>:0:4: warning: missing whitespace after the macro name
compiling cache8.c
<command-line>:0:4: warning: missing whitespace after the macro name
compiling dump.c
<command-line>:0:4: warning: missing whitespace after the macro name
compiling fast.c
<command-line>:0:4: warning: missing whitespace after the macro name
compiling load.c
<command-line>:0:4: warning: missing whitespace after the macro name
compiling oj.c
<command-line>:0:4: warning: missing whitespace after the macro name
linking shared-object oj.so
C:\Users\jarmo\Documents\Projects\Ruby\oj>ruby test\tests.rb
Run options:
# Running tests:
.....................................F......................EEE......................
Finished tests in 0.055003s, 1545.3703 tests/s, 2199.8800 assertions/s.
1) Failure:
test_encode(Juice) [test/tests.rb:884]:
<"\u3074\u30FC\u305F\u30FC"> expected but was
<"\xE3\x81\xB4\xE3\x83\xBC\xE3\x81\x9F\xE3\x83\xBC">.
2) Error:
test_range_compat(Juice):
NotImplementedError: Failed to dump 'Range' Object (09)
test/tests.rb:609:in `dump'
test/tests.rb:609:in `test_range_compat'
3) Error:
test_range_null(Juice):
NotImplementedError: Failed to dump 'Range' Object (09)
test/tests.rb:605:in `dump'
test/tests.rb:605:in `test_range_null'
4) Error:
test_range_object(Juice):
NotImplementedError: Failed to dump 'Range' Object (09)
test/tests.rb:619:in `dump'
test/tests.rb:619:in `test_range_object'
85 tests, 121 assertions, 1 failures, 3 errors, 0 skips
C:\Users\jarmo\Documents\Projects\Ruby\oj>ruby test\test_mimic.rb
Run options:
# Running tests:
.........E.......
Finished tests in 0.009000s, 1888.8889 tests/s, 2333.3333 assertions/s.
1) Error:
test_load_proc(Mimic):
NotImplementedError: Calling a Proc with a block not supported in this version. Use func() {|x| } syntax instead.
test/test_mimic.rb:79:in `load'
test/test_mimic.rb:79:in `test_load_proc'
17 tests, 21 assertions, 0 failures, 1 errors, 0 skips
C:\Users\jarmo\Documents\Projects\Ruby\oj>ruby test\test_fast.rb
Run options:
# Running tests:
.................................
Finished tests in 0.009001s, 3666.2593 tests/s, 11665.3705 assertions/s.
33 tests, 105 assertions, 0 failures, 0 errors, 0 skips
Any ideas why Ruby from RubyInstaller has every test passing, but tcs does not?
pushd ext\oj && ruby extconf.rb && make && popd
ruby test\tests.rb
ruby test\test_mimic.rb
ruby test\test_fast.rb
Thank You for help!