Skip to content

Commit

Permalink
added a comment to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-urban committed Oct 16, 2024
1 parent ab71288 commit 64d623c
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/tests/geoprocessing/backtracers/backtracedwci.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ TEST_CASE("BacktracedWCI should support common functions", TESTTAG)
CHECK(S[1].binary_hash() == 10310803827488579691ULL);


// test hash
// test hash (should be stable if class is not changed)
REQUIRE(BWCI.binary_hash() == 10221334945506934621ULL);
REQUIRE(BWCI.binary_hash() == BacktracedWCI(BWCI).binary_hash());
REQUIRE(BWCI.binary_hash() == BacktracedWCI(BWCI.from_binary(BWCI.to_binary())).binary_hash());
Expand Down
2 changes: 1 addition & 1 deletion src/tests/geoprocessing/backtracers/btconstantsvp.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ TEST_CASE("BTConstantSVP should support common functions", TESTTAG)
REQUIRE_THAT(ypr[1], Catch::Matchers::WithinAbs(location.pitch, 0.0001));
REQUIRE_THAT(ypr[2], Catch::Matchers::WithinAbs(location.roll, 0.0001));

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(backtracer.binary_hash() == 3830516406371434649);
REQUIRE(backtracer.binary_hash() == BTConstantSVP(backtracer).binary_hash());
REQUIRE(backtracer.binary_hash() ==
Expand Down
2 changes: 1 addition & 1 deletion src/tests/geoprocessing/backtracers/i_backtracer.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TEST_CASE("I_Backtracer should support common functions", TESTTAG)
REQUIRE_THAT(ypr[1], Catch::Matchers::WithinAbs(location.pitch, 0.0001));
REQUIRE_THAT(ypr[2], Catch::Matchers::WithinAbs(location.roll, 0.0001));

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(backtracer.binary_hash() == 11759859546874707158ull);
REQUIRE(backtracer.binary_hash() == I_Backtracer(backtracer).binary_hash());
REQUIRE(backtracer.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ TEST_CASE("BeamSampleParameters should support common functions", TESTTAG)
// test print does not crash
REQUIRE(param.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(param.binary_hash() == 4652324683533098954);
REQUIRE(param.binary_hash() == BeamSampleParameters(param).binary_hash());
REQUIRE(param.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TEST_CASE("RaytraceResult should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 5760038646027523138);
REQUIRE(location.binary_hash() == RaytraceResult(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_CASE("RaytraceResults should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 4496877549998357265);
REQUIRE(location.binary_hash() == RaytraceResults(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TEST_CASE("SampleDirections should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 7946198183670543780);
REQUIRE(location.binary_hash() == SampleDirections(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TEST_CASE("SampleDirectionsRange should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 15106317722440586394ULL);
REQUIRE(location.binary_hash() == SampleDirectionsRange(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TEST_CASE("SampleDirectionsTime should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 15106317722440586394ULL);
REQUIRE(location.binary_hash() == SampleDirectionsTime(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TEST_CASE("SampleIndices should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 545582192469170180);
REQUIRE(location.binary_hash() == SampleIndices(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
2 changes: 1 addition & 1 deletion src/tests/geoprocessing/datastructures/xyz.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TEST_CASE("XYZ should support common functions", TESTTAG)
// test print does not crash
REQUIRE(location.info_string().size() != 0);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(location.binary_hash() == 1848392524124629315);
REQUIRE(location.binary_hash() == XYZ(location).binary_hash());
REQUIRE(location.binary_hash() ==
Expand Down
2 changes: 1 addition & 1 deletion src/tests/geoprocessing/raytracers/i_raytracer.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ TEST_CASE("I_Raytracer should support common functions", TESTTAG)
REQUIRE_THAT(ypr[1], Catch::Matchers::WithinAbs(location.pitch, 0.0001));
REQUIRE_THAT(ypr[2], Catch::Matchers::WithinAbs(location.roll, 0.0001));

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(raytracer.binary_hash() == 17645473512760939812llu);
REQUIRE(raytracer.binary_hash() == I_Raytracer(raytracer).binary_hash());
REQUIRE(raytracer.binary_hash() ==
Expand Down
2 changes: 1 addition & 1 deletion src/tests/geoprocessing/raytracers/rtconstantsvp.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ TEST_CASE("RTConstantSVP should support common functions", TESTTAG)

REQUIRE_THAT(raytracer.get_sound_velocity(), Catch::Matchers::WithinAbs(c, 0.0001));

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(raytracer.binary_hash() == 16667922773826043259llu);
REQUIRE(raytracer.binary_hash() == RTConstantSVP(raytracer).binary_hash());
REQUIRE(raytracer.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TEST_CASE("CWSignalParameters should support common functions", TESTTAG)
REQUIRE(txs.get_effective_pulse_duration() == Approx(0.00234f));
REQUIRE(txs.get_tx_signal_type() == t_TxSignalType::CW);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(txs.binary_hash() == 6748335302485371792);
REQUIRE(txs.binary_hash() == CWSignalParameters(txs).binary_hash());
REQUIRE(txs.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST_CASE("FMSignalParameters should support common functions", TESTTAG)
REQUIRE(txs.get_effective_pulse_duration() == Approx(0.00234));
REQUIRE(txs.get_tx_signal_type() == t_TxSignalType::FM_UP_SWEEP);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(txs.binary_hash() == 6578226545546968191);
REQUIRE(txs.binary_hash() == FMSignalParameters(txs).binary_hash());
REQUIRE(txs.binary_hash() ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST_CASE("GenericSignalParameters should support common functions", TESTTAG)
REQUIRE(txs.get_effective_pulse_duration() == Approx(0.0023f));
REQUIRE(txs.get_tx_signal_type() == t_TxSignalType::UNKNOWN);

// test hash
// test hash (should be stable if class is not changed)
REQUIRE(txs.binary_hash() == 10730480407014384156ULL);
REQUIRE(txs.binary_hash() == GenericSignalParameters(txs).binary_hash());
REQUIRE(txs.binary_hash() ==
Expand Down

0 comments on commit 64d623c

Please sign in to comment.