Skip to content

Commit 560111b

Browse files
authored
Merge pull request #31 from pankaj-bind/fix-pr-13
Fix pr 13
2 parents e1d0dae + 29e9222 commit 560111b

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/Containers-AVL-Tree-Tests/CTAVLTreeTest.class.st

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ CTAVLTreeTest >> testAddForRRrotation [
4646
self assert: data asArray equals: { 1. 2. 3 }
4747
]
4848

49-
{ #category : 'tests' }
50-
CTAVLTreeTest >> testAddNilRaisesError [
51-
self should: [ tree add: nil ] raise: Error withExceptionDo: [ :ex |
52-
self assert: ex messageText equals: 'Cannot add nil to AVLTree' ]
53-
]
54-
5549
{ #category : 'tests' }
5650
CTAVLTreeTest >> testAddOneElement [
5751

src/Containers-AVL-Tree/CTAVLTree.class.st

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Class {
3333

3434
{ #category : 'adding' }
3535
CTAVLTree >> add: newObject [
36-
newObject ifNil: [ Error signal: 'Cannot add nil to AVLTree' ].
3736
root := root addChild: newObject.
3837
^ newObject
3938
]

0 commit comments

Comments
 (0)