I believe it's ok like that.
Doru
On Jun 24, 2008, at 9:37 AM, Stéphane Ducasse wrote:
do we agree that this test should be correct?
testClassNameAndUniqueName
"self debug: #testClassNameAndUniqueName"
| mseClass |
mseClass := self model entityNamed: #Smalltalk::Node.
self assert: mseClass name = #Node.
self assert: mseClass mooseName
= (FAMIX2NameResolver
uniqueNameForClassNamed: Node name
scope: (FAMIX2NameResolver moosify: Node environment
absoluteName)).
self assert: mseClass mooseName = #Smalltalk::Node
It was like that in VW
testNameAndUniqueName
| mseClass mseMethod mseAttribute mseGlobalVar mseImplicitVar
mseLocalVariable mseFormalParameter transcriptName |
mseClass := self model entityNamed: #'Root::Smalltalk::LAN::Node'.
self assert: mseClass name = #Node.
self assert: mseClass mooseName
= (FAMIXNameResolver uniqueNameForClassNamed: LAN.Node name
scope: (FAMIXNameResolver moosify: LAN.Node environment
absoluteName)).
self assert: mseClass mooseName = #'Root::Smalltalk::LAN::Node'.
On Jun 23, 2008, at 10:17 PM, Stéphane Ducasse wrote:
We can. I will do that then.
I'm rewriting a lot of tests.
Stef
On Jun 23, 2008, at 10:02 PM, Tudor Girba wrote:
Hi Stef,
It does not make much sense to have :: in the beginning. Maybe we
just
add Smalltalk as namespace?
Cheers,
Doru
On Jun 23, 2008, at 9:44 PM, stéphane ducasse wrote:
hi
I have a question. What is the name of the class in Squeak when
there
is no (or just Smalltalk as namespace?
| mseClass |
mseClass := self model entityNamed: #'Node'.
self assert: mseClass name = #Node.
self assert: mseClass mooseName
= (FAMIX2NameResolver
uniqueNameForClassNamed: Node name
scope: (FAMIX2NameResolver moosify: Node environment
absoluteName)).
I imagined
#'::Node'
Sytef
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
www.tudorgirba.com/blog
"Sometimes the best solution is not the best solution."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
"If you interrupt the barber while he is cutting your hair, you will
end up with a messy haircut."