Skip to content

ratnikov/exemplar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example

require 'exemplar'

example "adding two numbers together" do
  puts "1 + 5 = %s" % (1 + 5)
end

example "subtracting a number" do
  puts "5 - 1 = %s" % (5 - 1 )
end

This will produce:

Running example adding two numbers together...
1 + 5 = 6
Done running example adding two numbers together
Running example subtracting a number...
5 - 1 = 4
Done running example subtracting a number

See examples/ for more involved examples.

License and Copyright

All of the code is copyrighted by Google and is released under MIT license.

Releases

No releases published

Packages

No packages published

Languages