summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_isreal.sce
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/tests/unit_tests/test_isreal.sce')
-rw-r--r--2.3-1/tests/unit_tests/test_isreal.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test_isreal.sce b/2.3-1/tests/unit_tests/test_isreal.sce
new file mode 100644
index 00000000..2d76f36a
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test_isreal.sce
@@ -0,0 +1,6 @@
+//test file for isreal function
+function test_isreal()
+ a=10 // declare a varible and check it real or imaginary
+ y=isreal(a) // call for isreal
+ disp(y) // display output
+endfunction