summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/tests/string/substr.asy
blob: 6426895aa391c14514dacd9f089e5e7d2225dd96 (plain)
1
2
3
4
5
6
import TestLib;
StartTest("substr");
string s = "abcdef";
string sub = substr(s,2,2);
assert(sub == "cd");
EndTest();