aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/media/Test%20sim/test/TESTICLE_sample.lsl
blob: 599d1035ebc3b6b321ef5add59032a582d7d7a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
integer verbosity = 1;


default
{
  state_entry()
  {
    integer success = 1;
    string result = "";


    //
    // Put your tests here.
    //


    if (success)
    {
      if (0 == verbosity)
        result = result + "Shhh.";
      if (1 == verbosity)
        result = result + "Passed the testicle.";
      if (2 == verbosity)
        result = result + "The script called '" + llGetScriptName() + ".lsl' has passed all of it's tests, not that it has any.";
      result = result + " - SUCCESS";
    }
    else
    {
      if (0 == verbosity)
        result = result + "Shhh.";
      if (1 == verbosity)
        result = result + "Failed the testicle.";
      if (2 == verbosity)
        result = result + "The script called '" + llGetScriptName() + ".lsl' has failed all of it's tests, not that it has any.";
      result = result + " - FAILURE!!!";
    }

    llSay(0, llGetScriptName() + ": " + result);
  }

  on_rez(integer start_param)
  {
    llResetScript();
  }
}