[tests] Tweak LineAnnotation test so that it reveals a bug; fix the bug
This commit is contained in:
@@ -46,7 +46,7 @@ TEST(Annotations, SymbolAnnotation) {
|
||||
TEST(Annotations, LineAnnotation) {
|
||||
AnnotationTest test;
|
||||
|
||||
LineString<double> line = {{ { 0, 0 }, { 45, 45 } }};
|
||||
LineString<double> line = {{ { 0, 0 }, { 45, 45 }, { 30, 0 } }};
|
||||
LineAnnotation annotation { line };
|
||||
annotation.color = {{ 255, 0, 0, 1 }};
|
||||
annotation.width = 5;
|
||||
|
||||
Reference in New Issue
Block a user