summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimon2009-07-21 13:28:30 +0000
committersimon2009-07-21 13:28:30 +0000
commit9b60c6b0545c29e135f91f808b9965b3d02825a0 (patch)
treee912f16ec52d39e3b5338fcd97ba3fbb73f6fb91
parent2c6f9291a967eb8cd568a14ed17749d3f822d982 (diff)
downloadscilab2c-9b60c6b0545c29e135f91f808b9965b3d02825a0.tar.gz
scilab2c-9b60c6b0545c29e135f91f808b9965b3d02825a0.tar.bz2
scilab2c-9b60c6b0545c29e135f91f808b9965b3d02825a0.zip
added test for Det function
updated INIT_FillSCI2LibCDirs
-rw-r--r--macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci2
-rw-r--r--tests/unit_tests/test_double_Det.sci15
2 files changed, 16 insertions, 1 deletions
diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci
index c6d1ec7c..ea82bee1 100644
--- a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci
+++ b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci
@@ -1694,7 +1694,7 @@ INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,Ex
//NUT det is a little bit complex but for the moment we assume that
//NUT that det works as trace function.
-FunctionName = 'det';
+FunctionName = 'det'; // AS : Done
PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'both','y');
INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
diff --git a/tests/unit_tests/test_double_Det.sci b/tests/unit_tests/test_double_Det.sci
new file mode 100644
index 00000000..7c5f2fed
--- /dev/null
+++ b/tests/unit_tests/test_double_Det.sci
@@ -0,0 +1,15 @@
+function test_double_Det()
+
+ a = [1 2 3; 4 %pi 5; 4.5 -3 2];
+ disp(det(a));
+
+ b = %i * [1 2 3; 4 %pi 5; 4.5 -3 2];
+ disp(det(b));
+
+
+ disp(det(5));
+
+ disp(det(%i));
+endfunction
+
+