summaryrefslogtreecommitdiff
path: root/yapf/unittest/test_blob.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-09-06 13:58:31 +0000
committerglx <glx@openttd.org>2006-09-06 13:58:31 +0000
commit39ba62d48fbcc549833175c4d421b66a27141b0e (patch)
treef8bb6378cb9c8e4ee677312346e48a0574f59c03 /yapf/unittest/test_blob.h
parent7c6851b436003e3f4fe694b6bbf751f49d9d3e47 (diff)
downloadopenttd-39ba62d48fbcc549833175c4d421b66a27141b0e.tar.xz
(svn r6410) -remove unittest
Diffstat (limited to 'yapf/unittest/test_blob.h')
-rw-r--r--yapf/unittest/test_blob.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/yapf/unittest/test_blob.h b/yapf/unittest/test_blob.h
deleted file mode 100644
index 5f266b0f7..000000000
--- a/yapf/unittest/test_blob.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/* $Id$ */
-
-static int TestBlob1(bool silent)
-{
- typedef CBlobT<int64> Blob;
- int res = 0;
- {
- Blob a;
- Blob b;
- CHECK_INT(0, a.IsEmpty(), true);
- CHECK_INT(1, a.Size(), 0);
-
- const int nItems = 10;
-
- {
- for (int i = 1; i <= nItems; i++) {
- a.Append(i);
- CHECK_INT(2, a.IsEmpty(), false);
- CHECK_INT(3, a.Size(), i);
- }
- }
-
- {
- for (int i = 1; i <= nItems; i++) {
- CHECK_INT(4, *a.Data(i - 1), i);
- }
- }
- }
- return res;
-}
-
-static int TestBlob2(bool silent)
-{
- typedef CBlobT<CFsaItem> Blob;
- int res = 0;
- {
- Blob a;
- Blob b;
- CHECK_INT(0, a.IsEmpty(), true);
- CHECK_INT(1, a.Size(), 0);
-
- const int nItems = 10;
-
- {
- for (int i = 1; i <= nItems; i++) {
- a.Append(CFsaItem(i));
- CHECK_INT(2, a.IsEmpty(), false);
- CHECK_INT(3, a.Size(), i);
- }
- }
- {
- for (int i = 1; i <= nItems; i++) {
- CHECK_INT(4, a.Data(i - 1)->i, i);
- }
- }
- CHECK_INT(15, CFsaItem::NumInstances(), nItems);
- }
- CHECK_INT(16, CFsaItem::NumInstances(), 0);
-
- return res;
-}