首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Haskell doctest工具

Haskell doctest工具

  • 资源大小:2.26 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: haskell doctest

资 源 简 介

hs-doctest: doctest tool for haskell GIT http://github.com/nkchenz/hs-doctest/tree/master INTRO Test cases begin with "> ", followed by its expected output, like test1. If nothing is between two tests, means the first test has no output, like test2. Output is terminated by a blank line, like test3, its output is only "2". You can use BLANKLINE to represent a blankline in output, like test4. ``` {- test1 [1, 2] 1 test2 test3 [1, 2][2] This is not output of test3 test4 test5 -} ``` "> " can be changed to anything you like by modifiing PROMPT PROMPT = "> " # Prompt recognized in commentsHI_PROMPT = "Prelude> "MODULE_PROMPT = "*Main> " # After load source file, module context We start a new ghci thread, use ":load testfile" loading the whole file first, then run each test case by writing t

文 件 列 表

hs-doctest.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.243729s