mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-08-01 07:16:24 +08:00
@ -1,17 +1,16 @@
|
||||
package com.thealgorithms.others;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class CountCharTest {
|
||||
|
||||
@Test
|
||||
void testCountCharacters(){
|
||||
void testCountCharacters() {
|
||||
String input = "12345";
|
||||
int expectedValue = 5;
|
||||
|
||||
assertEquals(expectedValue, CountChar.CountCharacters(input));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user