# -*- coding: utf-8 -*-
# $Id: testHaskellQC.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 -----------------------------------------------------
"""_process_checkSemantics should return an instance of 'BackendResult' with error code -217 if no test spec is given"""
if result:
else:
"""_process_checkSemantics should return an instance of 'BackendResult' with error code -216 if no properties are given"""
if result:
else:
'submission': \
"""
rev :: [a] -> [a]
rev [] = []
rev (x:xs) = (rev xs) ++ [x]
""",
'properties': \
"""
prop_Reverse xs = rev xs == reverse xs
where types = xs::[Int]
prop_RevRev xs = rev (rev xs) == xs
where types = xs::[Int]
""",
'tests': ['default'],
}
"""_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"""
#print 'jobId', job.getId()
if result:
else:
"""_manage_checkSemantic should return True for a correct program"""
"""
rev :: [a] -> [a]
rev [] = []
rev (x:xs) = (rev xs) ++ [x]
"""
#print 'jobId', job.getId()
if result:
else:
def test_suite():
"""
"""
return suite
# -- main ---------------------------------------------------------------------
if __name__ == '__main__':