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

Bug in smallest_diminesions_yet calculation? #11

Open
fdncred opened this issue Sep 25, 2020 · 1 comment · May be fixed by #15
Open

Bug in smallest_diminesions_yet calculation? #11

fdncred opened this issue Sep 25, 2020 · 1 comment · May be fixed by #15
Assignees

Comments

@fdncred
Copy link

fdncred commented Sep 25, 2020

I believe this for loop code

for num_lines in (1 .. theoretical_max_num_lines).rev() {

should be inclusive

for num_lines in (1..=theoretical_max_num_lines).rev() {

I ran into this problem where the output should've been 2 rows but it would never output 2 rows. It would always fail and return the initialized value of None for smallest_dimensions_yet.

Please confirm.

Thanks!

@ogham ogham self-assigned this Oct 7, 2020
@tertsdiepraam
Copy link

tertsdiepraam commented Apr 30, 2021

Hi! We're also hitting this issue with the uutils ls, preventing us from upgrading to 0.2.0 and using the alignment feature. I just wanted to mention that the proposed fix passes the uutils tests and it'd be great to see this implemented.

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