[BUG][FIX]MacFileDirectoryTest>>testMacIsAbsolute

Karl Ramberg karl.ramberg at chello.se
Wed Jul 28 13:17:15 UTC 2004


In MacFileDirectoryTest there is an assert:
self assert: (MacFileDirectory isAbsolute: ':Desktop:test.st')
But ':Desktop:test.st' is not an absolute path to my knowledge.
I changed the method to say this: 

testMacIsAbsolute
	"(self selector: #testMacIsAbsolute) run"
	
	
	self deny: (MacFileDirectory isAbsolute: 'Volumes').
	self assert: (MacFileDirectory isAbsolute: 'Volumes:Data:Stef').
	self deny: (MacFileDirectory isAbsolute: ':Desktop:test.st')

Karl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MacFileDirecto...st.kfr.1.cs.gz
Type: application/octet-stream
Size: 260 bytes
Desc: Unknown Document
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040728/b1c359a2/MacFileDirecto...st.kfr.1.cs.obj


More information about the Squeak-dev mailing list