Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove most nqp::op use from test files.
  • Loading branch information
arnsholt committed Nov 29, 2014
1 parent 8d2700e commit 5bc1c25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
12 changes: 5 additions & 7 deletions t/def.t
@@ -1,12 +1,10 @@
nqp::say("1..2");
print("1..2");

def with_3_params(a,b,c):
nqp::print(a)
nqp::print(b)
nqp::say(c)
def with_param(a):
print(a)

def with_0_params():
nqp::say("ok 2");
print("ok 2");

with_3_params("o","k"," 1");
with_param("ok 1");
with_0_params()
12 changes: 6 additions & 6 deletions t/sanity/if.t
@@ -1,16 +1,16 @@
nqp::say('1..2')
print('1..2')

if 1:
if 0:
nqp::say("BAIL OUT!")
print("BAIL OUT!")
else:
nqp::print('not ')

nqp::say('ok 1 - else attachment')
print('ok 1 - else attachment')

if 0:
nqp::say("BAIL OUT!")
print("BAIL OUT!")
elif 1:
nqp::say("ok 2 - elif")
print("ok 2 - elif")
else:
nqp::say("BAIL OUT!")
print("BAIL OUT!")

0 comments on commit 5bc1c25

Please sign in to comment.