Skip to content

Executable documentation #19

Description

@jsborjesson

Should be possible to generate rspec tests by going through the markdown code blocks with something like:

code_block = ...
code_blocks.each do |spec|
  header         = ...
  code           = ...
  result_comment = ...
  it header do
    expect(Lasp::execute(code)).to eq Lasp::execute("'#{result_comment}")
  end
end

There are a lot of examples in there now and a quick way to check that they are correct would be very valuable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions