summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/double/test_Length.sci
blob: 75ecf26cd5ff60d48b0d14890f3d1a8577c9ccd2 (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
function test_Length()
	disp(length(4));
	disp(length(2+3*%i));
	disp(length([1 2 3 ; 4 5 6]));
	disp(length([1 2 3 ; 4 5 6]*%i));
	e = %pi ;
	disp(length(e)); // d0Lengthd0

	f = e * %i;
	disp(length(f));// z0Lengthd0

	a = [1 2 3 ; 4 5 6];
	disp(length(a));// d2Lengthd0
	
	b = [1 2 3 ; 4 5 6] * %i;
	disp(length(b));// z2Lengthd0


	g = "pouet" ;
	h = "a" ;
	
	disp(length(g)); // g0Lengthd0
	disp(length(h)); // g2Lengthd0

	disp(length("pouet"));
	disp(length("a"));

	



endfunction