summaryrefslogtreecommitdiff
path: root/yaksh/java_files/main_moreThan30.java
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-12-27 23:55:01 +0530
committerGitHub2016-12-27 23:55:01 +0530
commit48df2c1b30fa4bfc256399bbaadcbdefa555623d (patch)
treee1c4140c315655a9b57536e6550ac5eff5d67c4c /yaksh/java_files/main_moreThan30.java
parent48366e84b98157ac32b22b2aa19b1c1cde68afd4 (diff)
parent1b9a870975c1e2492b692ab8ec58bc3c628dcd82 (diff)
downloadonline_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.tar.gz
online_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.tar.bz2
online_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.zip
Merge pull request #167 from adityacp/new_fix_evaluators
Modify Evaluators to take moderator code as test case instead of files
Diffstat (limited to 'yaksh/java_files/main_moreThan30.java')
-rw-r--r--yaksh/java_files/main_moreThan30.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/yaksh/java_files/main_moreThan30.java b/yaksh/java_files/main_moreThan30.java
deleted file mode 100644
index 7da31cb..0000000
--- a/yaksh/java_files/main_moreThan30.java
+++ /dev/null
@@ -1,36 +0,0 @@
-class main_moreThan30
-{
- public static <E> void check(E expect, E result)
- {
- if(result.equals(expect))
- {
- System.out.println("Correct:\nOutput expected "+expect+" and got "+result+"\n");
- }
- else
- {
- System.out.println("Incorrect:\nOutput expected "+expect+" but got "+result+"\n");
- System.exit(1);
- }
- }
- public static void main(String arg[])
- {
- Test t = new Test();
- boolean result;
- result= t.moreThan30(30);
- System.out.println("Input submitted to the function: 30");
- check(false, result);
- result = t.moreThan30(151);
- System.out.println("Input submitted to the function: 151");
- check(true, result);
- result = t.moreThan30(66);
- System.out.println("Input submitted to the function: 66");
- check(false, result);
- result = t.moreThan30(63);
- System.out.println("Input submitted to the function: 63");
- check(true, result);
- result = t.moreThan30(91);
- System.out.println("Input submitted to the function: 91");
- check(true, result);
-
- }
-}