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
| Type | Name | Default | Description |
|---|---|---|---|
| String | f | Modelica.Utilities.Files.loadResource("modelica://Buildings/package.mo") | Name of a file that exists |
| String | fAbs | Buildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath(uri = f) | Absolute path of f |
| Integer | dummy | 1 | Dummy variable, used to have a result as needed for the unit tests |
Revisions
-
December 11, 2021, by Michael Wetter:
AddedloadResourcecall. -
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 toModelica.Utilities.Files.exist. -
May 9, 2013, by Michael Wetter:
First implementation.