[Issue 16711] New: unittest writefln

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 22 04:56:52 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16711

          Issue ID: 16711
           Summary: unittest writefln
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: visuald
          Assignee: nobody at puremagic.com
          Reporter: liangwen at msn.com

if unittest  and use writefln("%s",123),get the wrong
First-chance exception: std.format.FormatException Unterminated format
specifier: "%" at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(829)

win7 vs2015 visuald 0.3.34 dmd-2.072.0

import std.stdio;

unittest
{
    assert(1==1);
}

int main(string[] argv)
{
    writefln("%s",123);
    return 0;
}

--


More information about the Digitalmars-d-bugs mailing list