Changeset 13994


Ignore:
Timestamp:
Nov 8, 2019 9:54:44 AM (11 days ago)
Author:
Christian Andersson
Message:

Added JUnit test for the reworked code for domain checks. Related to ticket:5868

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-cw-2658/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenTests.mo

    r13990 r13994  
    146146")})));
    147147end DomainChecks1;
     148
     149model DomainChecks2
     150    Real x1 = abs(time);
     151
     152annotation(__JModelica(UnitTesting(tests={
     153    CCodeGenTestCase(
     154        name="DomainChecks2",
     155        description="Test of domain check generation",
     156        mathematical_domain_checks=false,
     157        inline_functions="none",
     158        template="$C_defines$",
     159        generatedCode="")})));
     160end DomainChecks2;
     161
     162model DomainChecks3
     163    Real x1 = abs(time);
     164
     165annotation(__JModelica(UnitTesting(tests={
     166    CCodeGenTestCase(
     167        name="DomainChecks3",
     168        description="Test of domain check generation",
     169        mathematical_domain_checks=true,
     170        inline_functions="none",
     171        template="$C_defines$",
     172        generatedCode="#define MATHEMATICAL_DOMAIN_CHECKS
     173")})));
     174end DomainChecks3;
    148175
    149176model CCodeGenTest1
Note: See TracChangeset for help on using the changeset viewer.