1 module test.bgzfreader; 2 3 import std.stdio; 4 5 import dhtslib.bgzf; 6 7 int main(string[] args) 8 { 9 stderr.writeln("[TEST SUITE] BGZF reader"); 10 11 auto bgzf = BGZFile(args[1]); 12 13 foreach(line; bgzf) { 14 writeln(line); 15 } 16 17 stderr.writeln("[TEST SUITE] All done."); 18 19 // Demonstrate that a new copy of the range will be empty 20 stderr.writeln("[TEST SUITE] range redux"); 21 foreach(line; bgzf) { 22 writeln(line); 23 } 24 25 return 0; 26 }