Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed lua-test-runner error with book-store_spec.lua #513

Merged
merged 1 commit into from
Sep 17, 2024
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
Loading