Skip to content

Commit 11ee20f

Browse files
committed
Test full slicing.
[SVN r21497]
1 parent 4405995 commit 11ee20f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/object.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ bool check_string_slice()
134134
if (s.slice(-3,_) != "rld")
135135
return false;
136136

137+
if (s.slice(_,_) != s)
138+
return false;
139+
137140
if (", " != s.slice(5,7))
138141
return false;
139142

0 commit comments

Comments
 (0)