Skip to content

Commit 4bc94d8

Browse files
vonbecmannastares
andauthored
add tests to SQLite3Column (#74)
Co-authored-by: Astares <[email protected]>
1 parent 05beb78 commit 4bc94d8

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Diff for: src/SQLite3-Core-Tests/SQLite3ColumnTest.class.st

+18-4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ SQLite3ColumnTest >> tearDown [
3838
super tearDown
3939
]
4040

41+
{ #category : #tests }
42+
SQLite3ColumnTest >> testHasNotNullConstraint [
43+
44+
self assert: firstColumn hasNotNullConstraint.
45+
self deny: secondColumn hasNotNullConstraint
46+
]
47+
48+
{ #category : #tests }
49+
SQLite3ColumnTest >> testIndex [
50+
51+
self assert: firstColumn index equals: 0.
52+
self assert: secondColumn index equals: 1
53+
]
54+
4155
{ #category : #tests }
4256
SQLite3ColumnTest >> testInitialization [
4357

@@ -47,10 +61,10 @@ SQLite3ColumnTest >> testInitialization [
4761
]
4862

4963
{ #category : #tests }
50-
SQLite3ColumnTest >> testNotNullConstraint [
51-
52-
self assert: firstColumn hasNotNullConstraint.
53-
self deny: secondColumn hasNotNullConstraint
64+
SQLite3ColumnTest >> testName [
65+
66+
self assert: firstColumn name equals: 'ID'.
67+
self assert: secondColumn name equals: 'NAME'
5468
]
5569

5670
{ #category : #tests }

0 commit comments

Comments
 (0)