Skip to content

Commit 878b812

Browse files
committed
Fix: Correct test expectation in DeviceNameFormatterTest
The formatDeviceName method only capitalizes the first letter of each word, it doesn't convert the entire word to uppercase. Changed test expectation: - Expected: 'Nexus 5X' (wrong) - Actual: 'Nexus 5x' (correct) The method behavior is correct: 'nexus_5x' → 'Nexus 5x' Only the first character of each word is capitalized.
1 parent b325bf3 commit 878b812

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/net/nicolamurtas/android/emulator/util/DeviceNameFormatterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DeviceNameFormatterTest {
1515
void testFormatDeviceName_WithUnderscore() {
1616
assertEquals("Pixel 7", DeviceNameFormatter.formatDeviceName("pixel_7"));
1717
assertEquals("Pixel 8", DeviceNameFormatter.formatDeviceName("pixel_8"));
18-
assertEquals("Nexus 5X", DeviceNameFormatter.formatDeviceName("nexus_5x"));
18+
assertEquals("Nexus 5x", DeviceNameFormatter.formatDeviceName("nexus_5x"));
1919
}
2020

2121
@Test

0 commit comments

Comments
 (0)