Skip to content

Commit 1b77713

Browse files
authored
Merge pull request #65 from ichiro-its/hotfix/fix-keisan-unit-tests
[Sprint 22 / PD-373] - [Hotfix] Fix Keisan Unit Tests
2 parents 0ce3ac2 + 7dd64d0 commit 1b77713

6 files changed

+13
-10
lines changed

.github/workflows/build-and-test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ jobs:
1616

1717
- name: Build and test workspace
1818
uses: ichiro-its/ros2-build-and-test-action@main
19+
with:
20+
ros2-distro: rolling

.github/workflows/deploy-debian-nightly.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- name: Build nightly Debian package
1616
uses: ichiro-its/ros2-build-debian-action@main
1717
with:
18+
ros2-distro: rolling
1819
unique-version: true
1920

2021
- name: Deploy nightly Debian package to server

.github/workflows/deploy-debian-stable.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- name: Build stable Debian package
1616
uses: ichiro-its/ros2-build-debian-action@main
17+
with:
18+
ros2-distro: rolling
1719

1820
- name: Deploy stable Debian package to server
1921
uses: appleboy/scp-action@master

test/angle/euler_test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ TEST(EulerTest, AssignmentConstructor)
5454
{ \
5555
ksn::Euler<TYPE> a(SOURCE), b = SOURCE, c; \
5656
c = SOURCE; \
57-
EXPECT_EQ(a, SOURCE); \
58-
EXPECT_EQ(b, SOURCE); \
59-
EXPECT_EQ(c, SOURCE); \
57+
EXPECT_TRUE(a == SOURCE); \
58+
EXPECT_TRUE(b == SOURCE); \
59+
EXPECT_TRUE(c == SOURCE); \
6060
}
6161

6262
ksn::Euler<float> float_euler(90_deg, 90_deg, 90_deg);
@@ -96,5 +96,5 @@ TEST(EulerTest, QuaternionConversion)
9696

9797
auto quaternion = euler.quaternion();
9898

99-
ASSERT_EQ(quaternion.euler(), euler);
99+
ASSERT_TRUE(quaternion.euler() == euler);
100100
}

test/angle/quaternion_test.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ TEST(QuaternionTest, AssignmentConstructor)
5252
{ \
5353
ksn::Quaternion<TYPE> a(SOURCE), b = SOURCE, c; \
5454
c = SOURCE; \
55-
EXPECT_EQ(a, SOURCE); \
56-
EXPECT_EQ(b, SOURCE); \
57-
EXPECT_EQ(c, SOURCE); \
55+
EXPECT_TRUE(a == SOURCE); \
56+
EXPECT_TRUE(b == SOURCE); \
57+
EXPECT_TRUE(c == SOURCE); \
5858
}
5959

6060
ksn::Quaternion<float> float_quaternion(1.0f, 1.0f, 1.0f, 1.0f);

test/matrix/matrix_inverse_test.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ class MatrixInverseTest : public ::testing::TestWithParam<matrix_3d_inverse_args
5151
}
5252

5353
if (((*matrix) == params.inverse) != params.is_valid) {
54-
return testing::AssertionFailure() << "the result validation is failed\n" <<
55-
"result = " << (*matrix) << "\n" <<
56-
"target = " << params.inverse;
54+
return testing::AssertionFailure() << "the result validation is failed";
5755
}
5856

5957
return testing::AssertionSuccess();

0 commit comments

Comments
 (0)