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

Error case #7

Open
daviddzxy opened this issue Feb 4, 2020 · 1 comment
Open

Error case #7

daviddzxy opened this issue Feb 4, 2020 · 1 comment

Comments

@daviddzxy
Copy link

container = EasyBoxPacker.find_smallest_container(
items:  [
            { dimensions: [57.0, 47.0, 73.0], weight: 0 },
            { dimensions: [15.3, 15.3, 15.3], weight: 0 },
        ]   
  )

This code produces error:

from /gems/easy-box-packer-0.0.8/easy-box-packer.rb:100:in `find_smallest_container'
/home/david/gems/gems/easy-box-packer-0.0.8/easy-box-packer.rb:445:in `check_container_is_bigger_than_greedy_box': undefined method `>=' for [57.0, 62.3, 73.0]:Array (NoMethodError)
@eyalabadi98
Copy link

eyalabadi98 commented Mar 20, 2021

@daviddzxy For the smallest container, remove the weight element as it will give you an error. That fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants