aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-08-04 13:23:44 -0700
committerMike Buland <eichlan@xagasoft.com>2023-08-04 13:23:44 -0700
commit99095773aa31bf8eb283d6f6319a29c71e51ca9c (patch)
tree9727523e7d3a035cb4e8e6c1d9eacbe49c766397 /src/unit
parent311d146e2d921bed4ae9d3b19203e935358b30ba (diff)
downloadlibbu++-99095773aa31bf8eb283d6f6319a29c71e51ca9c.tar.gz
libbu++-99095773aa31bf8eb283d6f6319a29c71e51ca9c.tar.bz2
libbu++-99095773aa31bf8eb283d6f6319a29c71e51ca9c.tar.xz
libbu++-99095773aa31bf8eb283d6f6319a29c71e51ca9c.zip
Woo! Unit Tests! Found some bugs!
Diffstat (limited to '')
-rw-r--r--src/unit/blob.unit1
-rw-r--r--src/unit/queuebuf.unit2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/unit/blob.unit b/src/unit/blob.unit
index ac2ee4f..7c6bbd1 100644
--- a/src/unit/blob.unit
+++ b/src/unit/blob.unit
@@ -63,6 +63,7 @@ suite Blob
63 unitTest( a != c ); 63 unitTest( a != c );
64 unitTest( a != "catt" ); 64 unitTest( a != "catt" );
65 unitTest( a != "ca" ); 65 unitTest( a != "ca" );
66 unitTest( a != "c" );
66 unitTest( !(a == c) ); 67 unitTest( !(a == c) );
67 unitTest( !(a == d) ); 68 unitTest( !(a == d) );
68 unitTest( a == a ); 69 unitTest( a == a );
diff --git a/src/unit/queuebuf.unit b/src/unit/queuebuf.unit
index 559fdaa..b628893 100644
--- a/src/unit/queuebuf.unit
+++ b/src/unit/queuebuf.unit
@@ -76,7 +76,7 @@ suite QueueBuf
76 76
77 test testRandomData 77 test testRandomData
78 { 78 {
79 srandom(time(NULL)); 79 srandom(1234);
80 Bu::QueueBuf qb; 80 Bu::QueueBuf qb;
81 Bu::String sTmp; 81 Bu::String sTmp;
82 Bu::String sTmp2; 82 Bu::String sTmp2;