[Issue 21338] New: Move functional style code's unit tests outside scope, to actually test them.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Oct 22 20:15:48 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21338
          Issue ID: 21338
           Summary: Move functional style code's unit tests outside scope,
                    to actually test them.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: crazymonkyyy at gmail.com
https://run.dlang.io/is/UxBhfw
import std;
void main()
{
  writeln("Learning D is fun".split!isWhite);
}
This is copy and pasted from the unittests, it behaves different based on scope
to the point I'm not sure "auto split(alias isTerminator, Range)(Range range)"
can exist outside of std code.
--
    
    
More information about the Digitalmars-d-bugs
mailing list