Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e69eb92
Fix documentation CMakeLists.txt to match documented process
connoraird Sep 9, 2025
fd12e77
Restructure docs to have different files for each page
connoraird Sep 9, 2025
79e4081
Add integrating with CMake to doxygen
connoraird Sep 9, 2025
6fe234d
add how to build a parallel pFUnit test with ctest
connoraird Sep 9, 2025
76c600e
Add failure message to preprocessor assertEqual test
connoraird Sep 10, 2025
fd82e15
Remove confusing @note from AssertBasic docstring
connoraird Sep 10, 2025
88734f4
Cleanup code blocks for assertions in doxygen pages
connoraird Sep 10, 2025
d3f75e7
style change and removing section link from main page
connoraird Sep 10, 2025
fb2446d
document @assertEqual
connoraird Sep 10, 2025
c50932c
document @assertTrue
connoraird Sep 10, 2025
b252e1e
document @assertFalse
connoraird Sep 10, 2025
8bc94bd
Update @assertEqual docs to have full reference
connoraird Sep 12, 2025
ce4d619
Update @assertTrue docs to have full reference
connoraird Sep 12, 2025
55374cb
Update @assertFalse docs to have full reference
connoraird Sep 12, 2025
95f35a2
Add fortran code block tags
connoraird Sep 12, 2025
8bc5938
Add ability to collapse assertEqul reference sections
connoraird Sep 12, 2025
63af174
Document @assertLessThan macro
connoraird Sep 12, 2025
64cee35
Remove reference subsubsections
connoraird Sep 12, 2025
ef426fa
Remove large lists of kinds to keep docs more maintainable
connoraird Dec 3, 2025
adff957
Move scalar comparison single statement at top
connoraird Dec 3, 2025
ba02b8b
Remove fortran from code blocks and combine array and scalar comparisons
connoraird Dec 3, 2025
0514ae0
Add docs for assertLessThanOrEqual preprocessor
connoraird Dec 3, 2025
2cc415c
Add docs for assertGreaterThan preprocessor
connoraird Dec 3, 2025
ebe8a21
Add docs for assertGreaterThanOrEqual preprocessor
connoraird Dec 3, 2025
cf8cc69
Add docs for logical assertions
connoraird Dec 3, 2025
4f7cc3c
Mark macros which aren't implemented as not implemented
connoraird Dec 3, 2025
64dff14
Add docs for assertSameShape
connoraird Dec 3, 2025
90e46f0
Add docs for assertIsNaN
connoraird Dec 3, 2025
32cc089
Remove @ from none preprocessor assertions
connoraird Dec 3, 2025
d57caed
Add docs for assertIsFinite
connoraird Dec 3, 2025
fc0bba8
Reorganise assertion docs to separate preprocessor directives and sub…
connoraird Dec 3, 2025
2fca6b6
Add info about custom error message to preprocessor directives page
connoraird Dec 3, 2025
57b76a9
Fix testMatchAtAssertEqual
connoraird Mar 24, 2026
c1278af
Update ChangeLog
connoraird Mar 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Multi-line continuation support for pFUnit macros (issue #532)
- Assertion macros (e.g., `@assertEqual`) now support Fortran `&` line continuation
- Whitespace is preserved exactly as written when joining continued lines
- Fix documentation generation with Doxygen.
- Split single documentation file into pages for easier management.
- Add documentation missing for assertions.
- Added a failure message to the assertEqual test.

## [4.16.0] - 2026-02-23

Expand Down
5 changes: 3 additions & 2 deletions bin/funit/tests/test_parser_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def testMatchAtAssertEqual(self):
self.assertTrue(atAssert.match("@assertEqual(a, b)"))
self.assertTrue(atAssert.match("@assertequal(a, b)")) # case insensitive
self.assertTrue(atAssert.match("@ASSERTEQUAL(a, b)")) # case insensitive
self.assertTrue(atAssert.match("@assertEqual(a, b, \"failure message\")"))

parser.fileName = "foo.pfunit"
parser.currentLineNumber = 8
atAssert.apply(" @assertEqual(1, 2)\n")
atAssert.apply(" @assertEqual(1, 2, \"failure message\")\n")
self.assertEqual('#line 8 "foo.pfunit"\n', parser.outLines[0])
self.assertEqual(" call assertEqual(1, 2, &\n", parser.outLines[1])
self.assertEqual(" call assertEqual(1, 2, \"failure message\", &\n", parser.outLines[1])
self.assertEqual(" & location=SourceLocation( &\n", parser.outLines[2])
self.assertEqual(" & 'foo.pfunit', &\n", parser.outLines[3])
self.assertEqual(" & 8)", parser.outLines[4])
Expand Down
3 changes: 2 additions & 1 deletion documentation/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.DS_Store
/*.el
/*.el
documentation
3 changes: 2 additions & 1 deletion documentation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,14 @@ if (${DOXYGEN_FOUND})
endif ()

if (ENABLE_BUILD_DOXYGEN)
doxygen_add_docs(docs-internal
doxygen_add_docs(documentation
"${CMAKE_SOURCE_DIR}/bin"
"${CMAKE_SOURCE_DIR}/documentation"
"${CMAKE_SOURCE_DIR}/Examples"
"${CMAKE_SOURCE_DIR}/src"
"${CMAKE_SOURCE_DIR}/include"
"${CMAKE_SOURCE_DIR}/tests"
COMMENT "Generate pFUnit Fortran documentation"
CONFIG_FILE "${CMAKE_SOURCE_DIR}/documentation/doxygen.conf"
)
endif()
Loading
Loading