summaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/c_sum.dia.ref5
-rw-r--r--tests/unit_tests/c_sum.tst5
-rw-r--r--tests/unit_tests/fortran_sum.dia.ref4
-rw-r--r--tests/unit_tests/fortran_sum.tst4
-rw-r--r--tests/unit_tests/java_sum.dia.ref5
-rw-r--r--tests/unit_tests/java_sum.tst5
-rw-r--r--tests/unit_tests/scilab_sum.dia.ref4
-rw-r--r--tests/unit_tests/scilab_sum.tst4
8 files changed, 36 insertions, 0 deletions
diff --git a/tests/unit_tests/c_sum.dia.ref b/tests/unit_tests/c_sum.dia.ref
new file mode 100644
index 0000000..023d2d4
--- /dev/null
+++ b/tests/unit_tests/c_sum.dia.ref
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(c_sum(3,5), 8);
+assert_checkequal(c_sum6(3,5), 8);
+//=================================
diff --git a/tests/unit_tests/c_sum.tst b/tests/unit_tests/c_sum.tst
new file mode 100644
index 0000000..023d2d4
--- /dev/null
+++ b/tests/unit_tests/c_sum.tst
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(c_sum(3,5), 8);
+assert_checkequal(c_sum6(3,5), 8);
+//=================================
diff --git a/tests/unit_tests/fortran_sum.dia.ref b/tests/unit_tests/fortran_sum.dia.ref
new file mode 100644
index 0000000..d244f1f
--- /dev/null
+++ b/tests/unit_tests/fortran_sum.dia.ref
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(fortran_sum(3,5), 8);
+//=================================
diff --git a/tests/unit_tests/fortran_sum.tst b/tests/unit_tests/fortran_sum.tst
new file mode 100644
index 0000000..d244f1f
--- /dev/null
+++ b/tests/unit_tests/fortran_sum.tst
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(fortran_sum(3,5), 8);
+//=================================
diff --git a/tests/unit_tests/java_sum.dia.ref b/tests/unit_tests/java_sum.dia.ref
new file mode 100644
index 0000000..fac83d2
--- /dev/null
+++ b/tests/unit_tests/java_sum.dia.ref
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+jimport org.scilab.contrib.toolboxskeleton.Sum;
+assert_checkequal(Sum.sum(7.0, 5.0), 12.0);
+//=================================
diff --git a/tests/unit_tests/java_sum.tst b/tests/unit_tests/java_sum.tst
new file mode 100644
index 0000000..fac83d2
--- /dev/null
+++ b/tests/unit_tests/java_sum.tst
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+jimport org.scilab.contrib.toolboxskeleton.Sum;
+assert_checkequal(Sum.sum(7.0, 5.0), 12.0);
+//=================================
diff --git a/tests/unit_tests/scilab_sum.dia.ref b/tests/unit_tests/scilab_sum.dia.ref
new file mode 100644
index 0000000..17e7e40
--- /dev/null
+++ b/tests/unit_tests/scilab_sum.dia.ref
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(scilab_sum(3,5), 8);
+//=================================
diff --git a/tests/unit_tests/scilab_sum.tst b/tests/unit_tests/scilab_sum.tst
new file mode 100644
index 0000000..17e7e40
--- /dev/null
+++ b/tests/unit_tests/scilab_sum.tst
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(scilab_sum(3,5), 8);
+//=================================