[Issue 20398] New: Wrong number of totalEntries in std.zip
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Nov 16 10:42:00 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20398
          Issue ID: 20398
           Summary: Wrong number of totalEntries in std.zip
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at d-ecke.de
import std.string : representation;
import std.zip;
void main()
{
    ArchiveMember file1 = new ArchiveMember();
    file1.name = "test1.txt";
    file1.expandedData("Test data.\n".dup.representation);
    ZipArchive zip = new ZipArchive();
    zip.addMember(file1);
    assert(zip.totalEntries == 1);
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list