Revision 8944e415
Von Sven Schöling vor fast 13 Jahren hinzugefügt
t/helper/attr.t | ||
---|---|---|
1 |
use Test::More tests => 29;
|
|
1 |
use Test::More tests => 32;
|
|
2 | 2 |
|
3 | 3 |
use lib 't'; |
4 | 4 |
|
... | ... | |
50 | 50 |
$i->netamount(10.34); |
51 | 51 |
is($i->taxamount_as_number, '1,66'); |
52 | 52 |
|
53 |
$o->closed(1); |
|
54 |
is $o->closed_as_bool_yn, 'Ja', 'bool 1'; |
|
55 |
$o->closed(0); |
|
56 |
is $o->closed_as_bool_yn, 'Nein', 'bool 2'; |
|
57 |
|
|
58 |
# undef test: this only works for columns without default, rose will set |
|
59 |
# defaults according to the database |
|
60 |
$i->taxincluded(undef); |
|
61 |
is $i->taxincluded_as_bool_yn, '', 'bool 3'; |
|
62 |
|
Auch abrufbar als: Unified diff
_bool_yn accessor