summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_string/scilabcode/strchrtest.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/tests/unit_tests/test_string/scilabcode/strchrtest.sci')
-rw-r--r--2.3-1/tests/unit_tests/test_string/scilabcode/strchrtest.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test_string/scilabcode/strchrtest.sci b/2.3-1/tests/unit_tests/test_string/scilabcode/strchrtest.sci
new file mode 100644
index 00000000..f8d34198
--- /dev/null
+++ b/2.3-1/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