Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 28, 2024
1 parent dc06b24 commit d876e9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Framework/Algorithms/test/CreateMonteCarloWorkspaceTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class CreateMonteCarloWorkspaceTest : public CxxTest::TestSuite {
TS_ASSERT(alg.isInitialized());
}

void test_computeNumberOfIterations() {
void test_computeNumberOfIterations() {
CreateMonteCarloWorkspace alg;
Mantid::HistogramData::HistogramY yData = {1.0, 2.0, 3.0, 4.0};
int iterations = alg.computeNumberOfIterations(yData, 0);
TS_ASSERT_EQUALS(iterations, 10); // Verify yData rounds correctly
TS_ASSERT_EQUALS(iterations, 10); // Verify yData rounds correctly

// Test custom Monte Carlo events
iterations = alg.computeNumberOfIterations(yData, 20);
Expand Down Expand Up @@ -65,7 +65,7 @@ void test_computeNumberOfIterations() {
TS_ASSERT_DELTA(totalScaledCounts, 20.0, 1e-6); // Verify the scaled sum matches targetMCEvents
}

void test_exec_with_scaling() {
void test_exec_with_scaling() {
CreateMonteCarloWorkspace alg;
alg.initialize();

Expand Down Expand Up @@ -95,7 +95,7 @@ void test_exec_with_scaling() {
AnalysisDataService::Instance().remove("MonteCarloTest_Scaled");
}

void test_exec_without_scaling() {
void test_exec_without_scaling() {
CreateMonteCarloWorkspace alg;
alg.initialize();

Expand Down

0 comments on commit d876e9e

Please sign in to comment.