; -------------------------------------------------------------------------------- ; @Title: Minimal example test case for Unittests ; @Description: ; This is an example for a test case which can be executed with lbunit.cmm. ; @Keywords: unittest unit test assertion assertions example ; @Author: MOB ; @Copyright: (C) 1989-2015 Lauterbach GmbH, licensed for use with TRACE32(R) only ; -------------------------------------------------------------------------------- ; $Id: test_example_minimal.cmm 8648 2015-09-03 17:04:05Z mobermeir $ ; Every test case must start with the following block: PRIVATE &func &args &result ENTRY &func %LINE &args GOSUB &func &args // call subroutine and return result ENTRY %LINE &result ENDDO &result ; end of mandatory block ; All tests must start with "Test_" Test_MyFirstTest: ( A_FALSE FALSE() A_TRUE (1.+1.==2.) RETURN ) Test_MySecondTest: ( A_NUM_EQ 10. math.ABS(-10.) A_STR_EQ "TEST" STRing.UpPeR("Test") RETURN )