Sha256: 606233dfd5fa1a52900fca338e8129b02105c24c773848f7cd68bd057235bc3d

Contents?: true

Size: 1.6 KB

Versions: 79

Compression:

Stored size: 1.6 KB

Contents

# encoding: utf-8
# language: ja
@javascript
機能: operators_length - 「変数:( )の長さ」ブロック
  背景:
    前提 "ブロック" タブを表示する

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

    ならば テキストエディタのプログラムは以下を含むこと:
      """
      "".length
      """

  シナリオ: 値を設定したブロックを配置する
    もし 次のブロックを配置する:
    """
    %block{:type => "operators_length", :x => "0", :y => "0"}
      %value{:name => "A"}
        %block{:type => "text"}
          %field{:name => "TEXT"}<
            こんにちは
    """
    かつ ブロックからソースコードを生成する

    ならば テキストエディタのプログラムは以下を含むこと:
      """
      "こんにちは".length
      """

  シナリオ: 文と値を設定したブロックを配置する
    もし 次のブロックを配置する:
    """
    %block{:type => "ruby_p", :x => "0", :y => "0", :inline => "true"}
      %value{:name => "ARG"}
        %block{:type => "operators_length"}
          %value{:name => "A"}
            %block{:type => "text"}
              %field{:name => "TEXT"}<
                こんにちは
    """
    かつ ブロックからソースコードを生成する

    ならば テキストエディタのプログラムは以下を含むこと:
      """
      p("こんにちは".length)
      """

Version data entries

79 entries across 79 versions & 1 rubygems

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