Debian Codegraph @

testsuite/environ

raw
1 foo = "(was foo)";
2 bar = "(was bar)";
3 num = -0x1fep2;
4 num1 = +42; #or 2
5 # a number
6 # and then
7 num2 = 0o22;
8 num3 = 0b10111;
9 array = [ "first", "second", "third"];
10
11 array2 # haha
12 = #hoho
13
14 [ # hum
15 1 # encore...
16 ,
17 2,
18 3,
19 # hop hop
20 4
21 ,
22 #bon, on va arreter les conneries
23 5] # un dernier pour la route
24 ; # fini
25
26 array3 = [[["lol"], [2]],
27 [[1], [1.1, 1.2, 1.3], [2], [3], [3.14, 3.5], [4]],
28 [["oh"], ["ah"]]];
29
30 empty_array = [];
31 empty_array2 = [
32 ];
33
34 string = "string";
35 floats = [
36 3.14,
37 42.0,
38 1.25,
39 1.12454687,
40 1.123456789,
41 1.1234567890123,
42 1.1234567890123456789, # this one should be truncated because of the precision
43 3.14010203040506,
44 3.14000000000001,
45 22.3821521336,
46 666.666666666,
47 21.6521518324225,
48 6232.27,
49
50 41.999995,
51 41.999996,
52 41.999997,
53 41.999998,
54 41.999999,
55 42.000000,
56 42.000001,
57 42.000002,
58 42.000003,
59 42.000004,
60 42.000005,
61
62 1e-5,
63 1e-7,
64 1e-9,
65 1e-11,
66 1e-13,
67 1e-15,
68 1e-17,
69
70 1e+5,
71 1e+7,
72 1e+9,
73 1e+11,
74 1e+13,
75 1e+15,
76 1e+17,
77 1e+19,
78 1e+21
79 ];
80
81
82 # array comparison test environ
83 larray_eq = [1, 2, "3", [4, 5], 6];
84 rarray_eq = [1, 2, "3", [4, 5], 6];
85
86 larray_inf = [1, "2", 3.4, 5];
87 rarray_inf = [1, "2", 3.5, 6];