Skip to content

Commit 5360959

Browse files
authored
Merge pull request #7 from itsdfish/auto-juliaformatter-pr
Automatic JuliaFormatter.jl run
2 parents ed1aa24 + 4258ab0 commit 5360959

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/game.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ Returns a vector of winners. In the event of a tie, there will not be a unique w
315315
316316
- `game`: game object
317317
"""
318-
function get_winners(game::AbstractGame{T}) where T
319-
max_books,_ = findmax(x -> length(x), game.books)
318+
function get_winners(game::AbstractGame{T}) where {T}
319+
max_books, _ = findmax(x -> length(x), game.books)
320320
winners = T[]
321-
for (k,v) game.books
321+
for (k, v) game.books
322322
length(v) == max_books ? push!(winners, k) : nothing
323323
end
324324
return winners
325-
end
325+
end

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -529,15 +529,15 @@ end
529529
end
530530
end
531531

532-
@safetestset "get winners" begin
532+
@safetestset "get winners" begin
533533
using GoFish
534534
using Test
535535

536-
game = Game([:a,:b,:c])
537-
game.books[:a] = [Card(),Card(),Card()]
538-
game.books[:b] = [Card(),Card()]
539-
game.books[:c] = [Card(),Card(),Card()]
536+
game = Game([:a, :b, :c])
537+
game.books[:a] = [Card(), Card(), Card()]
538+
game.books[:b] = [Card(), Card()]
539+
game.books[:c] = [Card(), Card(), Card()]
540540
winners = get_winners(game)
541541

542542
@test :a winners && :c winners
543-
end
543+
end

0 commit comments

Comments
 (0)