楼主: eastriver
1296 1

[学习分享] Beginner's luck: a language for property-based generators [推广有奖]

  • 0关注
  • 17粉丝

已卖:2108份资源

讲师

61%

还不是VIP/贵宾

-

威望
0
论坛币
11891 个
通用积分
111.7436
学术水平
31 点
热心指数
34 点
信用等级
26 点
经验
9282 点
帖子
202
精华
0
在线时间
367 小时
注册时间
2015-3-9
最后登录
2024-11-24

楼主
eastriver 发表于 2017-1-30 09:18:16 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

Property-based random testing à la QuickCheck requires building efficient generators for well-distributed random data satisfying complex logical predicates, but writing these generators can be difficult and error prone. We propose a domain-specific language in which generators are conveniently expressed by decorating predicates with lightweight annotations to control both the distribution of generated values and the amount of constraint solving that happens before each variable is instantiated. This language, called Luck, makes generators easier to write, read, and maintain.

We give Luck a formal semantics and prove several fundamental properties, including the soundness and completeness of random generation with respect to a standard predicate semantics. We evaluate Luck on common examples from the property-based testing literature and on two significant case studies, showing that it can be used in complex domains with comparable bug-finding effectiveness and a significant reduction in testing code size compared to handwritten generators.



Beginner's luck a language for property-based generators.pdf (471.78 KB)


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Generators Generator beginner property Language decorating difficult generated efficient expressed

沙发
xixia333 发表于 2017-1-31 21:21:25
非常感谢

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-28 21:23