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.
Should be possible to generate rspec tests by going through the markdown code blocks with something like:
There are a lot of examples in there now and a quick way to check that they are correct would be very valuable.