LoginSignup
0
0

More than 5 years have passed since last update.

Rantly(property based testing tool)でテストデータ生成 - literal

Last updated at Posted at 2017-04-28

Rantly#literal で値をそのまま返します

関連記事

tbpgr の rantly 関連記事

サンプル

Rantly(5){literal("test")}
# => ["test", "test", "test", "test", "test"]
Rantly(5){literal("test")}
# => ["test", "test", "test", "test", "test"]

# 固定値とランダム文字列を50%の確率で生成
Rantly(5){choose literal("test"), string}
# => ["test", "test", "WS~&fy", "test", "iZ'}dD"]
Rantly(5){choose literal("test"), string}
# => ["test", "ObZpu~", "test", "test", ")~Tny6"]

外部資料

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0