From 740042735f21760c7d6238a9effe84ec06b00e83 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Thu, 17 Aug 2023 11:35:42 -0700 Subject: [PATCH] Fix complains about an unused output (#28713) --- .../java/tests/chip/onboardingpayload/ManualCodeTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/java/tests/chip/onboardingpayload/ManualCodeTest.kt b/src/controller/java/tests/chip/onboardingpayload/ManualCodeTest.kt index 2a473f200975c0..06dca307bbfeb7 100644 --- a/src/controller/java/tests/chip/onboardingpayload/ManualCodeTest.kt +++ b/src/controller/java/tests/chip/onboardingpayload/ManualCodeTest.kt @@ -483,13 +483,13 @@ class ManualCodeTest { decimalString = representationWithoutCheckDigit + checkDigit outReprensation = ManualOnboardingPayloadParser.checkDecimalStringValidity(decimalString) - assertThat(outReprensation == representationWithoutCheckDigit) + assertThat(outReprensation).isEqualTo(representationWithoutCheckDigit) representationWithoutCheckDigit = "0000" checkDigit = Verhoeff10.computeCheckChar(representationWithoutCheckDigit) decimalString = representationWithoutCheckDigit + checkDigit outReprensation = ManualOnboardingPayloadParser.checkDecimalStringValidity(decimalString) - assertThat(outReprensation == representationWithoutCheckDigit) + assertThat(outReprensation).isEqualTo(representationWithoutCheckDigit) } /*