mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 21:30:12 +03:00
Add unittest to documentation
This commit is contained in:
parent
7e03da94e8
commit
af25bbbed4
1 changed files with 1 additions and 0 deletions
1
core.d
1
core.d
|
@ -284,6 +284,7 @@ bool isSliceOf(T1, T2)(scope const(T1)[] needle, scope const(T2)[] haystack) @tr
|
|||
);
|
||||
}
|
||||
|
||||
///
|
||||
@safe unittest {
|
||||
string s0 = "01234";
|
||||
const(char)[] s1 = s0[1 .. $];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue