summaryrefslogtreecommitdiff
path: root/t/42-dbobject.t
blob: 6eb42f2f01a341e8a2abeb4a4e744e32cade2309 (plain)
  1. use LedgerSMB::DBObject;
  2. use Test::More tests => 4;
  3. # Array parsing tests
  4. my $test = '{test,"test2\"\",",test3,"test4"}';
  5. my @vals = ('test', 'test2"",', 'test3', 'test4');
  6. my $passes = 0;
  7. for (LedgerSMB::DBObject->_parse_array($test)){
  8. is($_, shift @vals, "pass $pass, array parse test");
  9. }