-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #797 from moosetechnology/redo-467-with-test
redo #467
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
" | ||
A MooseGroupStorageTest is a test class for testing the behavior of MooseGroupStorage | ||
" | ||
Class { | ||
#name : #MooseGroupStorageTest, | ||
#superclass : #TestCase, | ||
#category : #'Moose-Core-Tests' | ||
} | ||
|
||
{ #category : #test } | ||
MooseGroupStorageTest >> testSpecies [ | ||
|
||
| groupA anEntity | | ||
groupA := MooseModel new. | ||
anEntity := MooseEntity new. | ||
groupA add: anEntity. | ||
groupA add: anEntity. | ||
self assert: groupA size equals: 2. | ||
groupA entityStorage species: Set. | ||
self assert: groupA size equals: 1. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters