Changeset 2592
- Timestamp:
- 06/17/08 16:45:27 (20 months ago)
- Files:
-
- 1 modified
-
branches/release-40/t/driver-tests.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-40/t/driver-tests.pl
r2591 r2592 415 415 } 416 416 417 sub conjunctions : Tests( 3) {417 sub conjunctions : Tests(4) { 418 418 my $self = shift; 419 419 $self->make_pc_data(); … … 421 421 422 422 my @res = Foo->load([ 423 { status => 10},424 -or => { name => 'Apple'},423 { status => 10 }, 424 -or => { name => 'Apple' }, 425 425 ]); 426 426 @res = sort { $a->id <=> $b->id } @res; 427 # where foo_status = 10 or foo_name = 'Apple'428 427 are_objects(\@res, [ @foos[0,3,4] ], '-or results'); 428 429 @res = Foo->load([ 430 { name => 'Microsoft' }, 431 -and => { status => 10 }, 432 ]); 433 are_objects(\@res, [ $foos[3] ], '-and results'); 429 434 430 435 @res = Foo->load([ … … 433 438 -and_not => { status => 11 }, 434 439 ]); 435 @res = sort { $a->id <=> $b->id } @res;436 440 # where (foo_status <= 20 and foo_name = 'Apple') and not (foo_status = 11) 437 441 are_objects(\@res, [ $foos[4] ], '-and_not results');
