Mercurial > hg > octave-nkf
changeset 2724:e03bf13a6aca
[project @ 1997-02-22 22:18:47 by jwe]
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-1.m @@ -0,0 +1,1 @@ +is_matrix (1)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-10.m @@ -0,0 +1,1 @@ +is_matrix ([1, 2; 3, 4], 2)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-2.m @@ -0,0 +1,1 @@ +is_matrix ([1, 2, 3])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-3.m @@ -0,0 +1,1 @@ +is_matrix ([])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-4.m @@ -0,0 +1,1 @@ +is_matrix ([1, 2; 3, 4])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-5.m @@ -0,0 +1,1 @@ +is_matrix ("t")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-6.m @@ -0,0 +1,1 @@ +is_matrix ("test")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-7.m @@ -0,0 +1,1 @@ +is_matrix (["test"; "ing"])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-8.m @@ -0,0 +1,2 @@ +s.a = 1; +is_matrix (s)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_matrix-9.m @@ -0,0 +1,1 @@ +is_matrix ()
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-1.m @@ -0,0 +1,1 @@ +is_scalar (1)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-10.m @@ -0,0 +1,1 @@ +is_scalar (1, 2)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-2.m @@ -0,0 +1,1 @@ +is_scalar ([1, 2])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-3.m @@ -0,0 +1,1 @@ +is_scalar ([])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-4.m @@ -0,0 +1,1 @@ +is_scalar ([1, 2; 3, 4])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-5.m @@ -0,0 +1,1 @@ +is_scalar ("t")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-6.m @@ -0,0 +1,1 @@ +is_scalar ("test")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-7.m @@ -0,0 +1,1 @@ +is_scalar (["test"; "ing"])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-8.m @@ -0,0 +1,2 @@ +s.a = 1; +is_scalar (s)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_scalar-9.m @@ -0,0 +1,1 @@ +is_scalar ()
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-1.m @@ -0,0 +1,1 @@ +is_square (1)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-10.m @@ -0,0 +1,1 @@ +is_square ()
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-11.m @@ -0,0 +1,1 @@ +is_square ([1, 2; 3, 4], 2)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-2.m @@ -0,0 +1,1 @@ +is_square ([1, 2])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-3.m @@ -0,0 +1,1 @@ +is_square ([])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-4.m @@ -0,0 +1,1 @@ +is_square ([1, 2; 3, 4]) == 2
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-5.m @@ -0,0 +1,1 @@ +is_square ("t")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-6.m @@ -0,0 +1,1 @@ +is_square ("test")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-7.m @@ -0,0 +1,1 @@ +is_square (["test"; "ing"; "1"; "2"]) == 4
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-8.m @@ -0,0 +1,2 @@ +s.a = 1; +is_square (s)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_square-9.m @@ -0,0 +1,1 @@ +is_square ([1, 2; 3, 4; 5, 6])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-1.m @@ -0,0 +1,1 @@ +is_symmetric (1)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-10.m @@ -0,0 +1,1 @@ +is_symmetric ([1, 2; 2, 1], 0, 0)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-11.m @@ -0,0 +1,1 @@ +is_symmetric ()
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-2.m @@ -0,0 +1,1 @@ +is_symmetric ([1, 2])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-3.m @@ -0,0 +1,1 @@ +is_symmetric ([])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-4.m @@ -0,0 +1,1 @@ +is_symmetric ([1, 2; 2, 1]) == 2
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-5.m @@ -0,0 +1,1 @@ +is_symmetric ("t")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-6.m @@ -0,0 +1,1 @@ +is_symmetric ("test")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-7.m @@ -0,0 +1,1 @@ +is_symmetric (["te"; "et"]) == 2
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-8.m @@ -0,0 +1,2 @@ +s.a = 1; +is_symmetric (s)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_symmetric-9.m @@ -0,0 +1,1 @@ +is_symmetric ([1, 2.1; 2, 1.1], 0.2) == 2
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-1.m @@ -0,0 +1,1 @@ +is_vector (1)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-10.m @@ -0,0 +1,1 @@ +is_vector ([1, 2], 2) \ No newline at end of file
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-2.m @@ -0,0 +1,1 @@ +is_vector ([1; 2; 3])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-3.m @@ -0,0 +1,1 @@ +is_vector ([])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-4.m @@ -0,0 +1,1 @@ +is_vector ([1, 2; 3, 4])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-5.m @@ -0,0 +1,1 @@ +is_vector ("t")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-6.m @@ -0,0 +1,1 @@ +is_vector ("test")
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-7.m @@ -0,0 +1,1 @@ +is_vector (["test"; "ing"])
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-8.m @@ -0,0 +1,2 @@ +s.a = 1; +is_vector (s)
new file mode 100644 --- /dev/null +++ b/test/octave.test/number/is_vector-9.m @@ -0,0 +1,1 @@ +is_vector ()
--- a/test/octave.test/number/number.exp +++ b/test/octave.test/number/number.exp @@ -0,0 +1,207 @@ +set test is_matrix-1 +set prog_output "ans = 1" +do_test is_matrix-1.m + +set test is_matrix-2 +set prog_output "ans = 1" +do_test is_matrix-2.m + +set test is_matrix-3 +set prog_output "ans = 1" +do_test is_matrix-3.m + +set test is_matrix-4 +set prog_output "ans = 1" +do_test is_matrix-4.m + +set test is_matrix-5 +set prog_output "ans = 1" +do_test is_matrix-5.m + +set test is_matrix-6 +set prog_output "ans = 1" +do_test is_matrix-6.m + +set test is_matrix-7 +set prog_output "ans = 1" +do_test is_matrix-7.m + +set test is_matrix-8 +set prog_output "ans = 0" +do_test is_matrix-8.m + +set test is_matrix-9 +set prog_output "error:.*" +do_test is_matrix-9.m + +set test is_matrix-10 +set prog_output "error:.*" +do_test is_matrix-10.m + +set test is_vector-1 +set prog_output "ans = 1" +do_test is_vector-1.m + +set test is_vector-2 +set prog_output "ans = 1" +do_test is_vector-2.m + +set test is_vector-3 +set prog_output "ans = 0" +do_test is_vector-3.m + +set test is_vector-4 +set prog_output "ans = 0" +do_test is_vector-4.m + +set test is_vector-5 +set prog_output "ans = 1" +do_test is_vector-5.m + +set test is_vector-6 +set prog_output "ans = 1" +do_test is_vector-6.m + +set test is_vector-7 +set prog_output "ans = 0" +do_test is_vector-7.m + +set test is_vector-8 +set prog_output "ans = 0" +do_test is_vector-8.m + +set test is_vector-9 +set prog_output "error:.*" +do_test is_vector-9.m + +set test is_vector-10 +set prog_output "error:.*" +do_test is_vector-10.m + +set test is_scalar-1 +set prog_output "ans = 1" +do_test is_scalar-1.m + +set test is_scalar-2 +set prog_output "ans = 0" +do_test is_scalar-2.m + +set test is_scalar-3 +set prog_output "ans = 0" +do_test is_scalar-3.m + +set test is_scalar-4 +set prog_output "ans = 0" +do_test is_scalar-4.m + +set test is_scalar-5 +set prog_output "ans = 1" +do_test is_scalar-5.m + +set test is_scalar-6 +set prog_output "ans = 0" +do_test is_scalar-6.m + +set test is_scalar-7 +set prog_output "ans = 0" +do_test is_scalar-7.m + +set test is_scalar-8 +set prog_output "ans = 0" +do_test is_scalar-8.m + +set test is_scalar-9 +set prog_output "error:.*" +do_test is_scalar-9.m + +set test is_scalar-10 +set prog_output "error:.*" +do_test is_scalar-10.m + +set test is_square-1 +set prog_output "ans = 1" +do_test is_square-1.m + +set test is_square-2 +set prog_output "ans = 0" +do_test is_square-2.m + +set test is_square-3 +set prog_output "ans = 0" +do_test is_square-3.m + +set test is_square-4 +set prog_output "ans = 1" +do_test is_square-4.m + +set test is_square-5 +set prog_output "ans = 1" +do_test is_square-5.m + +set test is_square-6 +set prog_output "ans = 0" +do_test is_square-6.m + +set test is_square-7 +set prog_output "ans = 1" +do_test is_square-7.m + +set test is_square-8 +set prog_output "ans = 0" +do_test is_square-8.m + +set test is_square-9 +set prog_output "ans = 0" +do_test is_square-9.m + +set test is_square-10 +set prog_output "error:.*" +do_test is_square-10.m + +set test is_square-11 +set prog_output "error:.*" +do_test is_square-11.m + +set test is_symmetric-1 +set prog_output "ans = 1" +do_test is_symmetric-1.m + +set test is_symmetric-2 +set prog_output "ans = 0" +do_test is_symmetric-2.m + +set test is_symmetric-3 +set prog_output "ans = 0" +do_test is_symmetric-3.m + +set test is_symmetric-4 +set prog_output "ans = 1" +do_test is_symmetric-4.m + +set test is_symmetric-5 +set prog_output "ans = 1" +do_test is_symmetric-5.m + +set test is_symmetric-6 +set prog_output "ans = 0" +do_test is_symmetric-6.m + +set test is_symmetric-7 +set prog_output "ans = 1" +do_test is_symmetric-7.m + +set test is_symmetric-8 +set prog_output "ans = 0" +do_test is_symmetric-8.m + +set test is_symmetric-9 +set prog_output "ans = 1" +do_test is_symmetric-9.m + +set test is_symmetric-10 +set prog_output "error:.*" +do_test is_symmetric-10.m + +set test is_symmetric-11 +set prog_output "error:.*" +do_test is_symmetric-11.m