aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/media/Test%20sim/test/TESTICLE_sample.lsl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmedia/Test%20sim/test/TESTICLE_sample.lsl45
1 files changed, 45 insertions, 0 deletions
diff --git a/media/Test%20sim/test/TESTICLE_sample.lsl b/media/Test%20sim/test/TESTICLE_sample.lsl
new file mode 100755
index 0000000..599d103
--- /dev/null
+++ b/media/Test%20sim/test/TESTICLE_sample.lsl
@@ -0,0 +1,45 @@
1integer verbosity = 1;
2
3
4default
5{
6 state_entry()
7 {
8 integer success = 1;
9 string result = "";
10
11
12 //
13 // Put your tests here.
14 //
15
16
17 if (success)
18 {
19 if (0 == verbosity)
20 result = result + "Shhh.";
21 if (1 == verbosity)
22 result = result + "Passed the testicle.";
23 if (2 == verbosity)
24 result = result + "The script called '" + llGetScriptName() + ".lsl' has passed all of it's tests, not that it has any.";
25 result = result + " - SUCCESS";
26 }
27 else
28 {
29 if (0 == verbosity)
30 result = result + "Shhh.";
31 if (1 == verbosity)
32 result = result + "Failed the testicle.";
33 if (2 == verbosity)
34 result = result + "The script called '" + llGetScriptName() + ".lsl' has failed all of it's tests, not that it has any.";
35 result = result + " - FAILURE!!!";
36 }
37
38 llSay(0, llGetScriptName() + ": " + result);
39 }
40
41 on_rez(integer start_param)
42 {
43 llResetScript();
44 }
45}