Changeset 227 for trunk/ext

Show
Ignore:
Timestamp:
09/20/2005 00:33:15 (3 years ago)
Author:
why
Message:

test/basic.rb: re-enable bytecode tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/ruby/tests/basic.rb

    r223 r227  
    3535    # 
    3636    def assert_bytecode( obj, yaml ) 
    37         # assert_equal( obj, YAML::Syck::Parser.new( :Input => :Bytecode ).load( yaml ) ) 
     37        yp = YAML::Syck::Parser.new 
     38        yp.input = :bytecode 
     39        assert_equal( obj, yp.load( yaml ) ) 
    3840    end 
    3941 
     
    4446                assert_equal( obj, YAML::load( yaml ) ) 
    4547        assert_equal( obj, YAML::parse( yaml ).transform ) 
    46         # assert_equal( obj, YAML::Syck::Parser.new( :Input => :Bytecode ).load( YAML::Syck::compile( yaml ) ) ) 
     48        yp = YAML::Syck::Parser.new 
     49        yp.input = :bytecode 
     50        assert_equal( obj, yp.load( YAML::Syck::compile( yaml ) ) ) 
    4751        end 
    4852