diff options
author | Abhinav Dronamraju | 2017-07-10 22:08:27 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-10 22:08:27 +0530 |
commit | d2c00f5343785085bcfefb62cbc041a5cffa8f31 (patch) | |
tree | 3d4fc371c30f2340af2def6dcabeb4fd4821eaf8 /tests/unit_tests/test_string/scilabcode/asciitest.sci | |
parent | c7d123014c05daaa6c7ce32bc5e86e5f3e7e4692 (diff) | |
parent | 49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (diff) | |
download | scilab2c-d2c00f5343785085bcfefb62cbc041a5cffa8f31.tar.gz scilab2c-d2c00f5343785085bcfefb62cbc041a5cffa8f31.tar.bz2 scilab2c-d2c00f5343785085bcfefb62cbc041a5cffa8f31.zip |
Pulled from upstream master
Diffstat (limited to 'tests/unit_tests/test_string/scilabcode/asciitest.sci')
-rw-r--r-- | tests/unit_tests/test_string/scilabcode/asciitest.sci | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit_tests/test_string/scilabcode/asciitest.sci b/tests/unit_tests/test_string/scilabcode/asciitest.sci new file mode 100644 index 00000000..aa0017d7 --- /dev/null +++ b/tests/unit_tests/test_string/scilabcode/asciitest.sci @@ -0,0 +1,11 @@ +//This function test the ascii function in scilab. +//Ascii function takes the input string and then gives the ascii code of the string. +// The output for the scilab will be:- +//[97. 110. 107. 105. 116. 32. 105. 115. 32. 114. 97. 106.] + +function asciitest() + y="ankit is raj"; //This is the input string for testing the function. + x=ascii(y); //calling of the function + disp(x); +endfunction + |