Changeset 13446


Ignore:
Timestamp:
Sep 11, 2019 12:41:55 PM (3 months ago)
Author:
Christian Andersson
Message:

Corrected the evaluator tests. Related to ticket:5837

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-cw-evaluator/Python/src/tests_jmodelica/general/test_extfunctions.py

    r13440 r13446  
    4747        """
    4848        cpath = "ExtFunctionTests.Substring"
    49         fmu_name = compile_fmu(cpath, self.fpath)
    50         model = load_fmu(fmu_name)
    51        
    52         assert model.get("sub") == "Y"
    53         assert model.get("string2") == "line"
     49        fmu_name = compile_fmu(cpath, self.fpath, compiler_options={"enable_external_evaluator":True})
     50        model = load_fmu(fmu_name)
     51       
     52        assert model.get("sub")[0] == "Y"
     53        assert model.get("string2")[0] == "line"
    5454        assert model.get("len") == 16
    5555        assert model.get("start") == 4
Note: See TracChangeset for help on using the changeset viewer.