Conversation
|
I'm planning to try the eagle part too. |
blackjack.rb
Outdated
There was a problem hiding this comment.
I think this test is not necessary moving forward. You have this covered by the same inputs and call in it "should use the new format"
Testing both sides is good testing when you have an if statement. in this case, I think it's overkill
Also --- in general, should calls are a stronger test than should_not
There was a problem hiding this comment.
I agree. I wanted to try it both ways since I'm new to testing, but the "should use new format" test covers everything for future testing. I will remove the other one.
|
Looks good! Some tips: in your Card#to_s method, it got a bit complex. I like what you're doing -- you could move the logic into a "suit_name" class and call that. something like: Let me know what you think. your code was good -- just some other ideas on ways to structure. |
|
I like that idea. I thought the suit_name should be separate in case something else needed to use it, but I wasn't sure were to put it. |
I completed the panda and tiger levels.