From bfca3766b691343c1613a3cd5965aedb993fa795 Mon Sep 17 00:00:00 2001 From: Federico Hernandez Date: Wed, 7 Sep 2011 00:33:03 +0200 Subject: [PATCH] Unit test Added more unit tests to uuid. --- test/uuid.t | 48 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/test/uuid.t b/test/uuid.t index 77689c27d..2bc591ac4 100755 --- a/test/uuid.t +++ b/test/uuid.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 26; # Create the rc file. if (open my $fh, '>', 'uuid.rc') @@ -44,6 +44,7 @@ if (open my $fh, '>', 'pending.data') [description:"one" entry:"1315260230" status:"pending" uuid:"9deed7ca-843d-4259-b2c4-40ce73e8e4f3"] [description:"two" entry:"1315260230" status:"pending" uuid:"0f4c83d2-552f-4108-ae3f-ccc7959f84a3"] [description:"three" entry:"1315260230" status:"pending" uuid:"aa4abef1-1dc5-4a43-b6a0-7872df3094bb"] +[description:"ssttaarrtt" entry:"1315335826" start:"1315338535" status:"pending" uuid:"d71d3566-7a6b-4c32-8f0b-6de75bb9397b"] EOF close $fh; ok (-r 'pending.data', 'Created pending.data'); @@ -54,6 +55,8 @@ if (open my $fh, '>', 'completed.data') print $fh <