Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

Location:
EcnlProtoTool/trunk/mruby-1.3.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-1.3.0/mrbgems/mruby-hash-ext/test/hash.rb

    r321 r331  
    3838    Hash['d_key']
    3939  end
     40end
     41
     42assert('Hash.[] for sub class') do
     43  sub_hash_class = Class.new(Hash)
     44  sub_hash = sub_hash_class[]
     45  assert_equal(sub_hash_class, sub_hash.class)
     46end
     47
     48assert('Hash.try_convert') do
     49  assert_nil Hash.try_convert(nil)
     50  assert_nil Hash.try_convert("{1=>2}")
     51  assert_equal({1=>2}, Hash.try_convert({1=>2}))
    4052end
    4153
     
    138150end
    139151
     152assert("Hash#invert with sub class") do
     153  sub_hash_class = Class.new(Hash)
     154  sub_hash = sub_hash_class.new
     155  assert_equal(sub_hash_class, sub_hash.invert.class)
     156end
     157
    140158assert("Hash#keep_if") do
    141159  h = { 1 => 2, 3 => 4, 5 => 6 }
     
    231249  assert_false(h2 > h2)
    232250end
     251
     252assert("Hash#dig") do
     253  h = {a:{b:{c:1}}}
     254  assert_equal(1, h.dig(:a, :b, :c))
     255  assert_nil(h.dig(:d))
     256end
Note: See TracChangeset for help on using the changeset viewer.