forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doctests: allow int/line-number prefix
This patch aims to formally begin the discussion here about feature parity between Erlang OTP doctest, and the library of the same name maintained by [williamthome](https://github.com/williamthome/doctest/) Specifically this patch targets `>` vs `1>` syntax for declaring the start of a testable code line or set of lines, ex; **Erlang OTP doctest** ````erlang -doc """ This test is how we do with `erlang/otp` doctests ``` > true. true > totallyOkay. totallyOkay ``` """ woot() -> ok. ```` **williamthome doctest** ````erlang -doc """ This test is how we do with `williamthome/doctest` ```erlang 1> false. false 2> thisIsFine. thisIsFine ``` """ muchJoy() -> ok.
- Loading branch information
Showing
5 changed files
with
437 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.