repo.or.cz
/
blog.pm-common-perl-mods.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dont' commit when nothing was changed.
[blog.pm-common-perl-mods.git]
/
Rose-DB-Object-I18N
/
t
/
is-original-translation.t
blob
72260abc0bb3df7b1697efaf03ff5340674a010a
1
#! /usr/bin/perl
2
3
use
strict
;
4
use
warnings
;
5
6
use
Test
::
More
'no_plan'
;
7
8
use
lib
't/lib'
;
9
10
use
NewDB
;
11
use
User
;
12
use
User
::
Manager
;
13
14
my
$db
=
NewDB
->
new
();
15
16
$db
->
init
();
17
18
my
$u
=
User
->
new
(
19
name
=>
'asdf2aa'
,
20
orig_lang
=>
'ru'
,
21
signature
=>
'hello'
22
);
23
$u
->
save
();
24
25
is
(
$u
->
i18n
->
is_original_translation
,
1
);
26
is
(
$u
->
is_original_translation
,
1
);
27
28
$u
->
delete
(
cascade
=>
1
);
29
30
1
;