Sha256: 63487d52ae5a16c0c4be21a36b61282af2edb5335ef509f4dd792e0278d98d20

Contents?: true

Size: 764 Bytes

Versions: 7

Compression:

Stored size: 764 Bytes

Contents

# run me with
#   ruby -rubygems -Ilib step1_tryouts.rb


## some addition
a = 1
b = 2
a + b + 1
# => 4


# multiple expectations
'foo' + 'bar'
#=> 'foobar'
#=> :foobar.to_s


# test ignores comments before expectations
'foo'
# ignored comment
# ignored comment
#=> 'foo'


## test uses helper methods
## ( #foo is defined on top of file )
#foo()
##=> foo


#begin
#  raise
#rescue
#  'foo'
#end
##=> 'foo'

## test handles multiple code lines
## only only tests last line against expectation
#str = ""
#str << 'foo'
#str << 'bar'
#str
##=> 'foobar'
##
### test failure
##'this fails'
###=> 'expectation not met'
#


# 
# require 'pathname'
# require Pathname(__FILE__).dirname.parent + 'lib/nofw'
# 
# # test failure
# 'this fails'
# #=> 'expectation not met'
# 

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tryouts-2.1.1 try/step2_try.rb
tryouts-2.1.0 try/step2_try.rb
tryouts-2.0.4 try/step2_try.rb
tryouts-2.0.3 try/step2_try.rb
tryouts-2.0.1.002 try/step2_try.rb
tryouts-2.0.1 try/step2_try.rb
tryouts-2.0.0 try/step2_try.rb