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