Skip to content

Commit

Permalink
Add test on consistency of merge return
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackEdder committed Jun 9, 2016
1 parent bf4b149 commit 6607012
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/ggplotd/aes.d
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,11 @@ unittest
assertEqual( merged.y, 2.0 );
assertEqual( merged.colour, "black" );
assertEqual( merged.label, "Point" );

// Test whether type/ordering is consistent
// Given enough benefit we can break this, but we'll have to adapt plotcli to match,
// which to be fair is relatively straightforward
static assert( is(Tuple!(string, "colour", double, "size", double, "angle", double, "alpha", bool, "mask", double, "fill", double, "x", double, "y", string, "label") == typeof(merged) ) );
}

///
Expand Down

0 comments on commit 6607012

Please sign in to comment.