Substring: Difference between revisions

m
Line 2,032:
=={{header|Eiffel}}==
 
[https://github.com/ljr1981/rosettacode_answers/blob/main/testing/rc_substring/rc_substring_test_set.e Github Test code]
[https://youtu.be/7X-ix3Z7t-o Explainer video - 2 mins]
[https://youtu.be/zuCmC4BuPFU Substring feature explainer video - 1 min]
 
Each task in the description is coded with one or two lines of setup and then a pair of assertions to ensure that the proper result from the substring call. Because the {STRING} class in Eiffel is high-level, it covers both 8-bit and 32-bit strings (ASC and Unicode). If one wants to specifically code for Unicode, all one really needs to do is use {STRING_32} in the space of {STRING}.
Anonymous user