|
80 | 80 | @testset "connected views" begin |
81 | 81 | numbers = [1, 2, 3, 4, 5, 6] |
82 | 82 | x = connect(numbers, Point{2}) |
83 | | - |
84 | | - @test x == Point[(1, 2), (3, 4), (5, 6)] |
| 83 | + @test x == Point{2, Int}[(1, 2), (3, 4), (5, 6)] |
| 84 | + xf = connect(numbers, Point2f) |
| 85 | + @test xf == Point2f[(1, 2), (3, 4), (5, 6)] |
85 | 86 |
|
86 | 87 | line = connect(x, Line, 1) |
87 | | - @test line == [Line(Point(1, 2), Point(3, 4)), Line(Point(3, 4), Point(5, 6))] |
| 88 | + @test line == [Line(Point{2, Int}(1, 2), Point{2, Int}(3, 4)), Line(Point{2, Int}(3, 4), Point{2, Int}(5, 6))] |
| 89 | + linef = connect(xf, Line, 1) |
| 90 | + @test linef == [Line(Point2f(1, 2), Point2f(3, 4)), Line(Point2f(3, 4), Point2f(5, 6))] |
88 | 91 |
|
89 | 92 | triangles = connect(x, Triangle) |
90 | 93 | @test triangles == [Triangle(Point(1, 2), Point(3, 4), Point(5, 6))] |
|
0 commit comments