[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2474] trunk/t/data/62-request-data



Revision: 2474
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2474&view=rev
Author:   einhverfr
Date:     2009-03-04 21:27:01 +0000 (Wed, 04 Mar 2009)

Log Message:
-----------
Adding test for payment number format safety

Modified Paths:
--------------
    trunk/t/data/62-request-data

Modified: trunk/t/data/62-request-data
===================================================================
--- trunk/t/data/62-request-data	2009-03-04 21:05:53 UTC (rev 2473)
+++ trunk/t/data/62-request-data	2009-03-04 21:27:01 UTC (rev 2474)
@@ -110,7 +110,8 @@
 				$self->debug({'file' => '/tmp/test2'});
 				return @$retval;
 			}
-		}
+		},
+                '_user'         =>  { numberformat => '1,000.00', dateformat => 'yyyy-mm-dd' },
 	},
 	{
 		'_test_id'     => 'Payment search (OLD)',
@@ -171,7 +172,6 @@
 		'account_class' => 1,
 		'currency'      => 'USD',
 		'multiple'      => 1,
-               
 	},
 	
 ];
@@ -234,6 +234,8 @@
 			"$self->{_test_id} source 2 not found");
 		ok(defined $self->{source_3}, 
 			"$self->{_test_id} source 3 defined");
+		cmp_ok($self->{grand_total}, 'eq', '2,000.00',
+			"Grand total formatting works");
 	}
 };
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.