diff options
Diffstat (limited to 'tests/unit_tests/double/test_Trace.sci')
-rw-r--r-- | tests/unit_tests/double/test_Trace.sci | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit_tests/double/test_Trace.sci b/tests/unit_tests/double/test_Trace.sci new file mode 100644 index 0000000..5fde91d --- /dev/null +++ b/tests/unit_tests/double/test_Trace.sci @@ -0,0 +1,13 @@ +function test_Trace() + + a = [1 2 3; 4 %pi 5; 4.5 -3 2]; + disp(trace(a)); + + b = %i * [1 2 3; 4 %pi 5; 4.5 -3 2]; + disp(trace(b)); + + + disp(trace(5)); + + disp(trace(%i)); +endfunction |