Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions exercises/practice/book-store/book-store_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ describe('book-store', function()
assert.are.same(10240, book_store.total(basket))
end)

it('check that groups of four are created properly even when there are more groups of three than groups of five',
function()
-- LuaFormatter off
it('check that groups of four are created properly even when there are more groups of three than groups of five', function()
local basket = { 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5 }
assert.are.same(14560, book_store.total(basket))
end)
-- LuaFormatter on

it('one group of one and four is cheaper than one group of two and three', function()
local basket = { 1, 1, 2, 3, 4 }
Expand Down