Testing Marker Name Processing with Special Characters in lottie-android
This test suite examines the Marker class functionality in Lottie Android, focusing on marker name handling and validation. It specifically tests the marker name matching behavior with special characters like carriage returns, ensuring robust text processing in animation markers.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
airbnb/lottie-android
lottie/src/test/java/com/airbnb/lottie/model/MarkerTest.java
package com.airbnb.lottie.model;
import org.junit.Test;
import static org.junit.Assert.*;
public class MarkerTest {
@Test
public void testMarkerWithCarriageReturn() {
Marker marker = new Marker("Foo\r", 0f, 0f);
assertTrue(marker.matchesName("foo"));
}
}