diff --git a/Scripts/CalculateWork.mlx b/Scripts/CalculateWork.mlx index 45f046b..1724569 100644 Binary files a/Scripts/CalculateWork.mlx and b/Scripts/CalculateWork.mlx differ diff --git a/Scripts/SecondLaw.mlx b/Scripts/SecondLaw.mlx index 84258bd..016d215 100644 Binary files a/Scripts/SecondLaw.mlx and b/Scripts/SecondLaw.mlx differ diff --git a/Scripts/SetUpCoolProp.mlx b/Scripts/SetUpCoolProp.mlx index 609dfa8..55d0366 100644 Binary files a/Scripts/SetUpCoolProp.mlx and b/Scripts/SetUpCoolProp.mlx differ diff --git a/Utilities/OpenREADME.m b/Utilities/OpenREADME.m index ba4266d..2d67a1e 100644 --- a/Utilities/OpenREADME.m +++ b/Utilities/OpenREADME.m @@ -1,14 +1,12 @@ function OpenREADME try - proj = currentProject; - -curFile = matlab.desktop.editor.getActive; -if isMATLABReleaseOlderThan("R2023b") - open("README2.mlx") -else - open("README.mlx") + currentProject; +catch + openProject; end +curFile = matlab.desktop.editor.getActive; +open("README.mlx") navFile = matlab.desktop.editor.getActive; if string(curFile.Filename) ~= string(navFile.Filename) close(curFile) diff --git a/Utilities/StartUpFcn.m b/Utilities/StartUpFcn.m index 6b4dbf6..5f3b51d 100644 --- a/Utilities/StartUpFcn.m +++ b/Utilities/StartUpFcn.m @@ -157,7 +157,7 @@ function OtherButtonPushed(app, event) end % Button pushed function: ReviewUsButton - function ReviewUsButtonPushed(app, event) + function ReviewUsButtonPushed(app) app.TabGroup.SelectedTab = app.TabReview; end diff --git a/Utilities/runMyTests.m b/Utilities/runMyTests.m index 9dcf74c..e3e046e 100644 --- a/Utilities/runMyTests.m +++ b/Utilities/runMyTests.m @@ -3,7 +3,7 @@ runner = matlab.unittest.TestRunner.withTextOutput; runner.addPlugin(TestReportPlugin.producingHTML('Verbosity',3)) -results = runner.run(testsuite("tests")) +results = runner.run(testsuite("tests")) %#ok<*NOPTS> T = table(results) diff --git a/buildutil/codecheckModule.m b/buildutil/codecheckModule.m index cf954b1..e325354 100644 --- a/buildutil/codecheckModule.m +++ b/buildutil/codecheckModule.m @@ -13,8 +13,7 @@ function codecheckModule(rootDir) error("thermodynamics:codeissues","No files to check.") end - if verLessThan('matlab','9.13') - % Use the old check code before R2022b + if isMATLABReleaseOlderThan("R2022b") issues = checkcode(filesToCheck); issues = [issues{:}]; issueCount = size(issues,1); @@ -38,7 +37,7 @@ function codecheckModule(rootDir) writeBadgeJSONFile("code issues",string(issueCount), color) if issueCount ~= 0 - if verLessThan('matlab','9.13') + if isMATLABReleaseOlderThan("R2022b") % pre R2022b, run checkcode without a RHS argument to display issues checkcode(filesToCheck) else diff --git a/buildutil/testModule.m b/buildutil/testModule.m index 5b3be6a..36c52d5 100644 --- a/buildutil/testModule.m +++ b/buildutil/testModule.m @@ -15,7 +15,7 @@ function testModule(options) import matlab.unittest.plugins.XMLPlugin; % import matlab.unittest.selectors.HasTag; - oldpath = addpath("tests",genpath(extractBefore(pwd,"buildutil"))); + oldpath = addpath("SoftwareTests",genpath(extractBefore(pwd,"buildutil"))); finalize = onCleanup(@()(path(oldpath))); openProject(options.ModuleName); @@ -33,7 +33,7 @@ function testModule(options) if options.RunSmokeTests smokeResults = runner.run(smokeSuite); - if ~verLessThan('matlab','9.9') && ~isMATLABReleaseOlderThan("R2022a") + if ~isMATLABReleaseOlderThan("R2022a") % This report is only available in R2022a and later. % isMATLABReleaseOlderThan wasn't added until MATLAB 2020b / version 9.9 smokeResults.generateHTMLReport(outputDirectory,'MainFile',"testreport.html"); diff --git a/report/test-results.xml b/report/test-results.xml index f3bf125..aeb6c7d 100644 --- a/report/test-results.xml +++ b/report/test-results.xml @@ -1,11 +1,8 @@ - - - - - - - + + + +