Last Will exercise + namespaces#1832
Conversation
The tests for these two learning exercises now check whether the expected exception has been defined inside or outside the main class. Solves issue #6772
The tests for these two learning exercises now check whether the expected exception has been defined inside or outside the main class. Solves issue #6772
…o moviegoer_calculator_fix
kotp
left a comment
There was a problem hiding this comment.
Ensure consistent formatting of the code and the code snippets.
Inspect the reasons for the failing CI tasks/checks.
|
@kotp what do I use for uuid? I need it in two places in config.json (for the new exercise and for the new concept). |
You can use the bin/configlet uuidOf course, you can use any tool that generates Version 4 UUID's. |
@kotp thanks! Where can I find the documentation you mention? I'm pretty sure I've looked through the documents in the repo and didn't see anything about generating UUIDs. |
Start here, and then it is the first thing under Also, just want to mention |
kotp
left a comment
There was a problem hiding this comment.
Looking pretty good to me. I think this will come in unless anyone else has some corrections or concerns.
| end | ||
|
|
||
| def self.assemble_code | ||
| (::Zhang::Red::code_fragment + ::Khan::Red::code_fragment + ::Garcia::Red::code_fragment) * (::Zhang::Blue::code_fragment + ::Khan::Blue::code_fragment + ::Garcia::Blue::code_fragment) |
There was a problem hiding this comment.
| (::Zhang::Red::code_fragment + ::Khan::Red::code_fragment + ::Garcia::Red::code_fragment) * (::Zhang::Blue::code_fragment + ::Khan::Blue::code_fragment + ::Garcia::Blue::code_fragment) | |
| (::Zhang::Red::code_fragment + ::Khan::Red::code_fragment + ::Garcia::Red::code_fragment) * | |
| (::Zhang::Blue::code_fragment + ::Khan::Blue::code_fragment + ::Garcia::Blue::code_fragment) |
Trying to get this closer to 80 characters per line, but it also arguably makes the code easier to read as the patterns are easier to recognize, that we are using the same methods and different color code for each family.
Adapted the Last Will exercise from the C++ track and added it to the Ruby learning track, together with the concept of namespaces.