Added test for duplicate ID in a single line
@@ -181,6 +181,24 @@ namespace ebi
vcf::IdBodyError*);
}
+ SECTION("Duplicate IDs")
+ {
+ CHECK_THROWS_AS( (vcf::Record{
+ 1,
+ "chr1",
+ 123456,
+ { "id123", "id123" },
+ "A",
+ { "AC", "AT" },
+ 1.0,
+ { "PASS" },
+ { {"AN", "12,7"}, {"AF", "0.5,0.3"} },
+ { "GT", "DP" },
+ { "0|1" },
+ std::make_shared<vcf::Source>(source)}),
+ vcf::IdBodyError*);
+ }
+
SECTION("Different length alleles")
{
CHECK_NOTHROW( (vcf::Record{
