summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_isreal.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/test_isreal.sce')
-rw-r--r--tests/unit_tests/test_isreal.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit_tests/test_isreal.sce b/tests/unit_tests/test_isreal.sce
new file mode 100644
index 0000000..2d76f36
--- /dev/null
+++ b/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