Skip to content

Executable documentation #19

@jsborjesson

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions