modelGetAbsolutePath

Test model to get the absolute path of a URI

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model tests the function that gets the absolute path of a URI.

Parameters

TypeNameDefaultDescription
StringfModelica.Utilities.Files.loadResource("modelica://Buildings/package.mo")Name of a file that exists
StringfAbsBuildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath(uri = f)Absolute path of f
Integerdummy1Dummy variable, used to have a result as needed for the unit tests

Revisions

  • December 11, 2021, by Michael Wetter:
    Added loadResource call.
  • November 18, 2016, by Michael Wetter:
    Removed tests that assumed that the regression test is run from the library root directory.
    This is for #596.
  • October 9, 2013, by Michael Wetter:
    Removed incorrect call to Modelica.Utilities.Files.exist.
  • May 9, 2013, by Michael Wetter:
    First implementation.