Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SupplyChef committed Jan 8, 2024
1 parent 0dd96c3 commit 484b52f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lane.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end
Checks if a location is a destination of a lane.
"""
function is_destination(location, lane::Lane)::bool
function is_destination(location, lane::Lane)::Bool
return location get_destinations(lane)
end

Expand Down
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ using SupplyChainModeling
(l1 == l2) && (l1 != l3) && (l1 != l4)
end

@test begin
customer = Customer("customer")
retailer = Storage("retailer")
wholesaler = Storage("wholesaler")

l1 = Lane(retailer, customer; unit_cost=0)

is_destination(customer, l1) && !is_destination(retailer, l1)
end

@test begin
product = Product("product")

Expand Down

0 comments on commit 484b52f

Please sign in to comment.