Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

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

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-2.1.1/test/t/lang.rb

    r331 r439  
    99# For example, the following mruby code:
    1010#
    11 #   if i > 0 and i < 10 then
     11#   if i > 0 and i < 10
    1212#
    1313# compiles to the following byte code:
     
    2828assert('and', '11.2.3') do
    2929  a = 1
    30   if a > 0 and a < 10 then
     30  if a > 0 and a < 10
    3131    b = 1
    3232  else
     
    3535  assert_equal 1, b
    3636
    37   if a < 0 and a < 10 then
     37  if a < 0 and a < 10
    3838    b = 1
    3939  else
     
    4242  assert_equal 0, b
    4343
    44   if a < 0 and a > 10 then
     44  if a < 0 and a > 10
    4545    b = 1
    4646  else
     
    5252assert('or','11.2.4') do
    5353  a = 1
    54   if a > 0 or a < 10 then
     54  if a > 0 or a < 10
    5555    b = 1
    5656  else
     
    5959  assert_equal 1, b
    6060
    61   if a < 0 or a < 10 then
     61  if a < 0 or a < 10
    6262    b = 1
    6363  else
     
    6666  assert_equal 1, b
    6767
    68   if a < 0 or a > 10 then
     68  if a < 0 or a > 10
    6969    b = 1
    7070  else
Note: See TracChangeset for help on using the changeset viewer.