Created
July 31, 2011 18:25
-
-
Save kevsmith/1117044 to your computer and use it in GitHub Desktop.
Test source for doku -- A literate programming tool inspired by docco & marginalia
This file contains hidden or 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
| -module(test). | |
| -include_lib("eunit/include/eunit.hrl"). | |
| %% A very silly define indeed. | |
| -define(FOO, 1). | |
| -export([test/0, | |
| test/2]). | |
| %% This function returns 5. | |
| %% It is rather boring. | |
| test() -> | |
| 5. | |
| %% This function: | |
| %% 1. Adds two numbers together | |
| %% 1. And is really exciting! | |
| test(X, Y) -> | |
| %% Add two numbers and return the value. | |
| Z = X + Y, | |
| %% This is rocket science | |
| Z. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment