Skip to content

Commit

Permalink
[t] Add new test to Task PMC [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobrito committed Dec 31, 2010
1 parent 8f87d11 commit b9b6a9f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions t/pmc/task.t
Expand Up @@ -44,6 +44,14 @@ pir_output_is( <<'CODE', <<'OUT', "create a task and set attributes" );
print $P3
print "\n"
$P2 = new ['String']
$P2 = "sub event"
setattribute $P0, 'subtype', $P2
$P3 = getattribute $P0, 'subtype'
print $P3
print "\n"
$P2 = new ['Integer']
$P2 = 10
setattribute $P0, 'priority', $P2
Expand All @@ -67,12 +75,24 @@ pir_output_is( <<'CODE', <<'OUT', "create a task and set attributes" );
$P3 = getattribute $P0, 'birthtime'
print $P3
print "\n"
$P2 = new ['String']
$P2 = "aditional data"
setattribute $P0, 'data', $P2
$P2 = get_global 'code'
setattribute $P0, 'code', $P2
end
.end
.sub code
say "sub"
.end
CODE
created
inprocess
event
sub event
10
7405
1.1
Expand Down

0 comments on commit b9b6a9f

Please sign in to comment.