We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1d0dae + 29e9222 commit 560111bCopy full SHA for 560111b
src/Containers-AVL-Tree-Tests/CTAVLTreeTest.class.st
@@ -46,12 +46,6 @@ CTAVLTreeTest >> testAddForRRrotation [
46
self assert: data asArray equals: { 1. 2. 3 }
47
]
48
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
-
55
{ #category : 'tests' }
56
CTAVLTreeTest >> testAddOneElement [
57
src/Containers-AVL-Tree/CTAVLTree.class.st
@@ -33,7 +33,6 @@ Class {
33
34
{ #category : 'adding' }
35
CTAVLTree >> add: newObject [
36
- newObject ifNil: [ Error signal: 'Cannot add nil to AVLTree' ].
37
root := root addChild: newObject.
38
^ newObject
39
0 commit comments