From 99095773aa31bf8eb283d6f6319a29c71e51ca9c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 4 Aug 2023 13:23:44 -0700 Subject: Woo! Unit Tests! Found some bugs! --- src/unit/blob.unit | 1 + src/unit/queuebuf.unit | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/unit') 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 unitTest( a != c ); unitTest( a != "catt" ); unitTest( a != "ca" ); + unitTest( a != "c" ); unitTest( !(a == c) ); unitTest( !(a == d) ); 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 test testRandomData { - srandom(time(NULL)); + srandom(1234); Bu::QueueBuf qb; Bu::String sTmp; Bu::String sTmp2; -- cgit v1.2.3