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
/
linkedlist
/
LinkedListRawTest.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
54
55
56
57
58
59
package com.sibirjak.asperform.collectiontests.examples.linkedlist {
import com.sibirjak.asperform.collectiontests.CollectionTestCase;
/**
* @author Jens Struwe 28.04.2010
*/
public class LinkedListRawTest extends CollectionTestCase {
private var _list : LinkedListRaw;
/*
* Test neutralisation
*/
override protected function createCollection() : * {
_list = new LinkedListRaw();
return _list;
}
override protected function fill() : void {
for (var i : uint = 0; i < _numItems; i++) {
_list.addLast(_data[i]);
}
}
override protected function get size() : uint {
return _list.size;
}
/*
* Tests
*/
public function test_addFirst() : void {
for (var i : uint = 0; i < _numItems; i++) {
_list.addFirst(_data[i]);
}
}
public function test_addLast() : void {
for (var i : uint = 0; i < _numItems; i++) {
_list.addLast(_data[i]);
}
}
public function test_removeFirst() : void {
for (var i : uint = 0; i < _numItems; i++) {
_list.removeFirst();
}
}
public function test_removeLast() : void {
for (var i : uint = 0; i < _numItems; i++) {
_list.removeLast();
}
}
}
}
Show details
Hide details
Change log
r6
by jens.struwe on Apr 28, 2010
Diff
[DEV] Linked list example, Array and Dictionary tests added.
Go to:
...sibirjak/asperform/TestRunner.as
...lectiontests/ArraySortedTests.as
...rm/collectiontests/ArrayTests.as
...ectiontests/CollectionTests.mxml
...llectiontests/DictionaryTests.as
...perform/collectiontests/examples
...s/examples/LinkedListRawTests.as
...lectiontests/examples/linkedlist
...ples/linkedlist/LinkedListRaw.as
.../linkedlist/LinkedListRawTest.as
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1184 bytes, 59 lines
View raw file
Powered by
Google Project Hosting