diff options
Diffstat (limited to 'Build/source/utils/asymptote/tests/string/substr.asy')
-rw-r--r-- | Build/source/utils/asymptote/tests/string/substr.asy | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/tests/string/substr.asy b/Build/source/utils/asymptote/tests/string/substr.asy new file mode 100644 index 00000000000..6426895aa39 --- /dev/null +++ b/Build/source/utils/asymptote/tests/string/substr.asy @@ -0,0 +1,6 @@ +import TestLib; +StartTest("substr"); +string s = "abcdef"; +string sub = substr(s,2,2); +assert(sub == "cd"); +EndTest(); |