# -*- coding: utf-8 -*-
# $Id: testJava.py 1603 2011-10-10 12:33:02Z amelung $
#
# Copyright (c) 2007-2011 Otto-von-Guericke-Universität Magdeburg
#
# This file is part of ECSpooler.
import unittest
"""
"""
# -- individual tests -----------------------------------------------------
modelSolution = \
"""
public class Test
{
public int max3(int a, int b, int c)
{
return Math.max(a, Math.max(b, c));
}
}
"""
submission = \
"""
public class Test
{
public int max3(int a, int b, int c)
{
return Math.max(a, Math.max(b, c));
}
}
"""
'submission': submission,
'modelSolution': modelSolution,
'tests': ['simple'],
'testData': 'new Test().max3(1,2,3)\nnew Test().max3(1,3,2)\nnew Test().max3(3,2,1)',
}
"""_manage_checkSyntax should return False for a syntactical incorrect program"""
if result:
else:
"""_manage_checkSyntax should return True for a correct program"""
#print 'jobId', job.getId()
if result:
else:
"""_manage_checkSemantic should return False for an incorrect program"""
"""
public class Test
{
public int max3(int a, int b, int c)
{
return a;
}
}
"""
if result:
else:
"""_manage_checkSemantic should return True for a correct program"""
#print 'jobId', job.getId()
if result:
else:
def test_suite():
"""
"""
return suite
# -- main ---------------------------------------------------------------------
if __name__ == '__main__':