Skip to content

Commit

Permalink
tests: Update shape tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson committed Jul 16, 2024
1 parent bebeae2 commit 774916d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/realtime/shape_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ defmodule Realtime.ShapeTest do
alias Realtime.Shape
alias Skate.Detours.RouteSegments
use ExUnit.Case
import Skate.Factory

doctest Shape

test "translates route segments and detour shape into encoded polyline shape" do
route_segments = %RouteSegments.Result{
before_detour: [
Location.new(42.425, -70.99),
Location.new(42.431, -70.99)
build(:gtfs_stop, %{latitude: 42.425, longitude: -70.99}),
build(:gtfs_stop, %{latitude: 42.431, longitude: -70.99})
],
detour: [
Location.new(42.431, -70.99),
Location.new(42.439, -70.99)
build(:gtfs_stop, %{latitude: 42.431, longitude: -70.99}),
build(:gtfs_stop, %{latitude: 42.439, longitude: -70.99})
],
after_detour: [
Location.new(42.439, -70.99),
Location.new(42.445, -70.99)
build(:gtfs_stop, %{latitude: 42.439, longitude: -70.99}),
build(:gtfs_stop, %{latitude: 42.445, longitude: -70.99})
]
}

Expand Down

0 comments on commit 774916d

Please sign in to comment.