mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Fix condition and add to it explaining comment
This commit is contained in:
parent
7e85e21336
commit
45984042ea
1 changed files with 4 additions and 2 deletions
|
@ -1754,7 +1754,8 @@ version(unittest) private void testDecodeBack(R)(ref R range,
|
||||||
size_t expectedNumCodeUnits,
|
size_t expectedNumCodeUnits,
|
||||||
size_t line = __LINE__)
|
size_t line = __LINE__)
|
||||||
{
|
{
|
||||||
static if (!isSomeString!R && !isBidirectionalRange!R)
|
// This condition is to allow unit testing all `decode` functions together
|
||||||
|
static if (!isBidirectionalRange!R)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1821,7 +1822,8 @@ version(unittest) private void testBadDecode(R)(R range, size_t index, size_t li
|
||||||
|
|
||||||
version(unittest) private void testBadDecodeBack(R)(R range, size_t line = __LINE__)
|
version(unittest) private void testBadDecodeBack(R)(R range, size_t line = __LINE__)
|
||||||
{
|
{
|
||||||
static if (!isSomeString!R && !isBidirectionalRange!R)
|
// This condition is to allow unit testing all `decode` functions together
|
||||||
|
static if (!isBidirectionalRange!R)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue