summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_string/scilabcode/strchrtest.sci
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/test_string/scilabcode/strchrtest.sci')
-rw-r--r--tests/unit_tests/test_string/scilabcode/strchrtest.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit_tests/test_string/scilabcode/strchrtest.sci b/tests/unit_tests/test_string/scilabcode/strchrtest.sci
new file mode 100644
index 0000000..f8d3419
--- /dev/null
+++ b/tests/unit_tests/test_string/scilabcode/strchrtest.sci
@@ -0,0 +1,6 @@
+function strchrtest()
+ s="This is a sample string";
+ ch="s";
+ y=strchr(s,ch);
+ disp(y);
+endfunction