My favorites
▼
|
Sign in
sibirjak
Russischer Bär source code repository
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
asperform
/
com
/
sibirjak
/
asperform
/
collectiontests
/
examples
/
map
/
MapRawTest.as
r27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.sibirjak.asperform.collectiontests.examples.map {
import com.sibirjak.asperform.collectiontests.CollectionTestCase;
/**
* @author Jens Struwe 28.04.2010
*/
public class MapRawTest extends CollectionTestCase {
private var _map : MapRaw;
/*
* Test neutralisation
*/
override protected function createCollection() : * {
_map = new MapRaw();
return _map;
}
override protected function fill() : void {
for (var i : uint = 0; i < _numItems; i++) {
_map.add(_data[i], _data[i]);
}
}
override protected function get size() : uint {
return _map.size;
}
/*
* Tests
*/
public function test_add() : void {
for (var i : uint = 0; i < _numItems; i++) {
_map.add(_data[i], _data[i]);
}
}
public function test_hasKey() : void {
for (var i : uint = 0; i < _numItems; i++) {
_map.hasKey(_data[i]);
}
}
public function test_removeKey() : void {
for (var i : uint = 0; i < _numItems; i++) {
_map.removeKey(_data[i]);
}
}
}
}
Show details
Hide details
Change log
r7
by jens.struwe on Apr 28, 2010
Diff
[DEV] Map example
Go to:
...ectiontests/CollectionTests.mxml
...iontests/examples/MapRawTests.as
...orm/collectiontests/examples/map
...tiontests/examples/map/MapRaw.as
...tests/examples/map/MapRawTest.as
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1027 bytes, 53 lines
View raw file
Powered by
Google Project Hosting