I tried doing the same as the validation test and it seems that, although it has an extra space, it does print two black pixels followed by two red pixels. Are there any configs that I am missing to set up the ftxui::Screener?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"sorry for the late reply, I just found out that I misunderstood the dimension
parameter of pixelator::Drawer
's constructor, I thought we had to create a ftxui screen with width=dimension.y*2
. When I just create the ftxui screen with the given argument without modifying, it passes the test. So while the actual output looks reasonable, maybe they have different implementations for the remaining space for the row internally. Sorry for the inconvenience haha.
Homework 5 DrawerValidationTest.SetFromImage #65
-
Hi! Thanks for the exciting homework. I failed to pass the drawer test:
I tried doing the same as the validation test and it seems that, although it has an extra space, it does print two black pixels followed by two red pixels. Are there any configs that I am missing to set up the ftxui::Screener? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hmm. Interesting. Do you know why there is an extra space there? |
Beta Was this translation helpful? Give feedback.
sorry for the late reply, I just found out that I misunderstood the
dimension
parameter ofpixelator::Drawer
's constructor, I thought we had to create a ftxui screen withwidth=dimension.y*2
. When I just create the ftxui screen with the given argument without modifying, it passes the test. So while the actual output looks reasonable, maybe they have different implementations for the remaining space for the row internally. Sorry for the inconvenience haha.