I’m developing an ‘Automatic test case generator’ using java. The inputs for the java program will be fed by prolog program. If the input is for example an integer 2 then the java program should square the number and display it as output. In the same way if there are 3 integers the java program should accept one number at a time and display all results (i mean it should test each case).
I’m developing an ‘Automatic test case generator’ using java. The inputs for the java
Share
As I said in a comment, all inputs are
StringsThe program has to convert the strings into different object types to “test each case”, such as in the following program.Just in case you’re confused, you don’t always have to conduct tests with a
tryblock. You can useifandswitchblocks as well (i.e.if (input.equalsIgnoreCase("dog")) //do something)