- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day, dear vendors,
I always want to have a safe good portable code. And so, I have brought my notice to aunit test. I saw the fUnit, for example. But it is not so good. It requires the Ruby.A probability that I will have in another machine the Ruby is too small. But theprobability that I`ll have Fortran in another one is high. Are you going toinclude assertions with an error interface to the Fortran syntax in the nearfuture or release some librariry?
Oleg.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oleg,
I'm sorry to say that I don't fully understand your question. However, our philosophy is that we do not add new syntax to the Fortran language that is not part of the Fortran standard. (Many years ago, we did, when the standard was lacking, but not now.)
It is not difficult to define your own assertion functions.
I'm sorry to say that I don't fully understand your question. However, our philosophy is that we do not add new syntax to the Fortran language that is not part of the Fortran standard. (Many years ago, we did, when the standard was lacking, but not now.)
It is not difficult to define your own assertion functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve, I did.
But I mean something like in the Java.[fortran]!DEC$ unitTest myUnitTest logical function testMyMethod() RESULT(res) !... this = myMethod() res = assertion_eq( this, that ) end function testMyMethod[/fortran]
The directive !DEC$ unitTest defines (declares) the testMyMethod with an assertion of this and that variables.
And this function is placed in a module where I code the myMethod function (and this one may be private, you can call a private method in a module).
Oleg.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page