Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
31
Task/Introspection/Ring/introspection.ring
Normal file
31
Task/Introspection/Ring/introspection.ring
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Project: Introspection
|
||||
|
||||
if version() < 1.8
|
||||
see "Version is too old" + " (" + version() + ")" + nl
|
||||
else
|
||||
see "Version is uptodate" + " (" + version() + ")" + nl
|
||||
ok
|
||||
bloop = 5
|
||||
if isglobal("bloop") = 1
|
||||
see "Variable " + "'bloop'" + " exists" + nl
|
||||
else
|
||||
see "Variable " + "'bloop'" + " doesn't exist" + nl
|
||||
ok
|
||||
if isglobal("bleep") = 1
|
||||
see "Variable " + "'bleep'" + " exists" + nl
|
||||
else
|
||||
see "Variable " + "'bleep'" + " doesn't exist" + nl
|
||||
ok
|
||||
if isfunction("abs") = 1
|
||||
see "Function " + "'abs'" + " is defined" + nl
|
||||
else
|
||||
see "Function " + "'abs'" + " is not defined" + nl
|
||||
ok
|
||||
if isfunction("abc") = 1
|
||||
see "Function " + "'abc'" + " is defined" + nl
|
||||
else
|
||||
see "Function " + "'abc'" + " is not defined" + nl
|
||||
ok
|
||||
|
||||
func abs(bloop)
|
||||
return fabs(bloop)
|
||||
Loading…
Add table
Add a link
Reference in a new issue