Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples converted to the new api, tested with examples.rb which stil…
…l uses the old api No more: Check(foo).is("bar") Instead do: Assert(foo == "bar")
- Loading branch information
Myles Byrne
committed
Apr 13, 2010
1 parent
ab22115
commit f7b223c
Showing
17 changed files
with
150 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
end | ||
|
||
eg "class name is printed when check is given a class" do | ||
Check(Object) | ||
Show(Object) | ||
end | ||
|
||
__END__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'exemplor' | ||
|
||
eg 'Showing the value of some expression' do | ||
list = [1, 2, 3] | ||
Show(list.first) | ||
end | ||
|
||
__END__ | ||
|
||
- name: Showing the value of some expression | ||
status: info (with checks) | ||
result: | ||
- name: list.first | ||
status: info | ||
result: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
require 'exemplor' | ||
|
||
eg { Check(1).is(1) } | ||
eg { Check(2).is(2) } | ||
eg { Check(3).is(3) } | ||
eg { Check(4).is(4) } | ||
eg { Check(5).is(5) } | ||
eg { Check(6).is(6) } | ||
eg { Check(7).is(7) } | ||
eg { Check(8).is(8) } | ||
eg { Check(9).is(9) } | ||
eg { Check(false).is(true) } | ||
eg { Assert(1 == 1) } | ||
eg { Assert(2 == 2) } | ||
eg { Assert(3 == 3) } | ||
eg { Assert(4 == 4) } | ||
eg { Assert(5 == 5) } | ||
eg { Assert(6 == 6) } | ||
eg { Assert(7 == 7) } | ||
eg { Assert(8 == 8) } | ||
eg { Assert(9 == 9) } | ||
eg { Assert(false == true) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.