# -*- coding: utf-8 -*-
# $Id: testErlang.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 test data are given"""
if result:
else:
'submission':'-module(fac).\n-export([fac/1]).\nfac(0) -> 1;\nfac(N) -> N * fac(N-1).',
'modelSolution': '-module(fac).\n-export([fac/1]).\nfac(0) -> 1;\nfac(N) -> N * fac(N-1).',
'tests': ['simple'],
'testData': 'fac(2)\nfac(3)',
}
"""_manage_checkSyntax should return False for a syntactical incorrect program"""
self.jobdata['submission'] = '-module(fac).\n-export([fac/1]).\nfac(0) -> 1;\nfac(N) -> N * fac(N-1);'
#print 'jobId', job.getId()
if result:
else:
"""_manage_checkSyntax should return True for a correct program"""
self.jobdata['submission'] = '-module(fac).\n-export([fac/1]).\nfac(0) -> 1;\nfac(N) -> N * fac(N-1).'
#print 'jobId', job.getId()
if result:
else:
"""_manage_checkSemantic should return False for an incorrect program"""
self.jobdata['submission'] = '-module(fac).\n-export([fac/1]).\nfac(0) -> 1;\nfac(N) -> N + fac(N-1).'
#print 'jobId', job.getId()
if result:
else:
"""_manage_checkSemantic should return True for a correct program"""
self.jobdata['submission'] = '-module(fac).\n-export([fac/1]).\nfac(0) -> 1;\nfac(N) -> N * fac(N-1).'
#print 'jobId', job.getId()
if result:
else:
def test_suite():
"""
"""
return suite
# -- main ---------------------------------------------------------------------
if __name__ == '__main__':