Beautify TestDriver
This commit is contained in:
parent
d3e22bafd1
commit
3bafc92f47
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.idea/
|
8
lol.rb
8
lol.rb
|
@ -90,9 +90,7 @@ def construct_driver(class_name, parameters, methods, container_class, container
|
||||||
methods_to_print = ""
|
methods_to_print = ""
|
||||||
maggie = methods.map do |x|
|
maggie = methods.map do |x|
|
||||||
if x[:print]
|
if x[:print]
|
||||||
"
|
"System.out.println(lol.#{x[:name]}(#{args x[:parameters]}));"
|
||||||
System.out.println(lol.#{x[:name]}(#{args x[:parameters]}));
|
|
||||||
"
|
|
||||||
else
|
else
|
||||||
"lol.#{x[:name]}(#{args x[:parameters]});"
|
"lol.#{x[:name]}(#{args x[:parameters]});"
|
||||||
end
|
end
|
||||||
|
@ -125,14 +123,12 @@ def construct_driver(class_name, parameters, methods, container_class, container
|
||||||
lol.add#{class_name}(tmp5);
|
lol.add#{class_name}(tmp5);
|
||||||
System.out.println(\"\");
|
System.out.println(\"\");
|
||||||
System.out.println(\"Some checkpoint\");
|
System.out.println(\"Some checkpoint\");
|
||||||
#{maggie.join "\n\n System.out.println(\"Some Checkpoint\"); \n\n"}
|
#{maggie.join "\n\n\tSystem.out.println(\"Some Checkpoint\"); \n\t"}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
TestDriver.test();
|
TestDriver.test();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user