-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactoring #44
base: master
Are you sure you want to change the base?
Refactoring #44
Conversation
File structure
Files
|
Some comments
import static org.junit.Assert.assertEquals
public class ExerciseTest {
@Test
public void test1() {
// some tests that call the student's code
}
} Also don't forget to add the
And then starting from this the python script generates an inginious directory (but it should not be present at the beginning). As a start, do not handle inginious things. Just make a repo with the exercises and the structure shown above. We should be able to run a command like |
Sorry for bothering you but do you know a way to make IntelliJ understand that the files in src/ are Java classes ? I can't get any autocompletion when working in that folder. |
Looks better for the structure 👍 For intellij you need to tell it that it is a java code repository, you can for example add a |
When working on section 3 I encountered a problem with auxiliary classes. The three exercises about Binary Trees include a Node class with the same name which means we have three different definitions of the same class in the same package. Should I rename the Node classes or will we use a different solution to this problem ? |
You can define the node class as a private class in the Tree classes. Something like public class Tree {
private class Node {
....
}
} should work. You can define getters to access elements of the nodes. Also could you |
Refactoring