Sha256: c4be331c7a64679ac4d2324fb0a396e2c4d1fb5e1b5bef5da8a8f70008eb2d90

Contents?: true

Size: 1.7 KB

Versions: 83

Compression:

Stored size: 1.7 KB

Contents

# encoding: utf-8
# language: ja
@javascript
機能: control_until - 「< >まで繰り返す」ブロック
  シナリオ: ブロックのみ配置する
    前提 "ブロック" タブを表示する

    もし 次のブロックを配置する:
    """
    %block{:type => "control_until", :x => "0", :y => "0"}
    """
    かつ ブロックからソースコードを生成する

    ならば テキストエディタのプログラムは以下であること:
    """
    require "smalruby"

    until true

    end

    """

  シナリオ: 値を設定したブロックを配置する
    前提 "ブロック" タブを表示する

    もし 次のブロックを配置する:
    """
    %block{:type => "control_until", :x => "0", :y => "0"}
      %value{:name => "COND"}
        %block{:type => "operators_false"}
    """
    かつ ブロックからソースコードを生成する

    ならば テキストエディタのプログラムは以下であること:
    """
    require "smalruby"

    until false

    end

    """

  シナリオ: ブロックとその内部に文を配置する
    前提 "ブロック" タブを表示する

    もし 次のブロックを配置する:
    """
    %block{:type => "control_until", :x => "0", :y => "0"}
      %value{:name => "COND"}
        %block{:type => "operators_false"}
      %statement{:name => "DO"}
        %block{:type => "ruby_statement", :x => "0", :y => "0"}
          %field{:name => "STATEMENT"}<
            p self
    """
    かつ ブロックからソースコードを生成する

    ならば テキストエディタのプログラムは以下であること:
    """
    require "smalruby"

    until false
      p self
    end

    """

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.4.2-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.4.2 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.4.1 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.4.0-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.4.0 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.5-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.5 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.4-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.4 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.3-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.3 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.2-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.2 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.1-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.1 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.0-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.3.0 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.2.7-x86-mingw32 spec/acceptance/block_mode/blocks/control/until.feature
smalruby-editor-0.2.7 spec/acceptance/block_mode/blocks/control/until.feature