Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skim committed Jul 5, 2011
1 parent 85b573e commit 8b3186a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/UITest.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ Test subclass: UITestCase [
]

testDisplayClassTest [
ui displayClass: Object test: 'someTest'.
ui displayClass: Object test: 'someTest' line: '123'.

self assert: (output message =~ 'Object#someTest has damaged your karma.') matched.
self assert: (output message =~ 'in src/koans/Object\.st:122-123') matched.
]

testDisplayEndMessageFailed [
Expand Down Expand Up @@ -78,6 +79,7 @@ Test subclass: UITestCase [

dictionary := Dictionary new
add: #message -> 'Hello World!';
add: #line -> '123';
add: #expected -> 15;
add: #actual -> nil;
add: #class -> Object;
Expand Down

0 comments on commit 8b3186a

Please sign in to comment.