mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-29 07:26:01 +08:00

* style: insert newline at eof * style: use `InsertNewlineAtEOF` in `clang-format` * fix: use `clang-format-16` * chore: update clang-format-lint-action to v0.16.2 --------- Co-authored-by: Debasish Biswas <debasishbsws.dev@gmail.com>
17 lines
331 B
Java
17 lines
331 B
Java
package com.thealgorithms.others;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
class CountCharTest {
|
|
|
|
@Test
|
|
void testCountCharacters() {
|
|
String input = "12345";
|
|
int expectedValue = 5;
|
|
|
|
assertEquals(expectedValue, CountChar.CountCharacters(input));
|
|
}
|
|
}
|