Skip to content

Commit

Permalink
Adding file and a dummy test for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Nov 30, 2024
1 parent 3735dd4 commit d87f727
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MicroEd-Tests/MDFileTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,11 @@ MDFileTest >> testMDFileHasFileReferenceWithFormatISO [
self assert: (file basename includesSubstring: date).
self deny: (fileReferenceWithName exists )
]

{ #category : 'running' }
MDFileTest >> testMDFileUnderstandFile [

mdfile initializeWithFileReference: fileExample.
self assert: mdfile file class equals: FileReference.

]
5 changes: 5 additions & 0 deletions src/MicroEd/MDFile.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ MDFile >> extension: anExtension [
fileReference extension: anExtension
]

{ #category : 'accessing' }
MDFile >> file [
^ fileReference
]

{ #category : 'accessing' }
MDFile >> fileReference [

Expand Down

0 comments on commit d87f727

Please sign in to comment.