import org.nutz.lang.segment.Segment;
public class CharSegmentTest {
@Test
public void testNormal() {
Segment seg = Segments.create("H${4}B");
seg.set("4", "zzh");
assertEquals("H${4}B", seg.getOrginalString());
assertEquals("HzzhB", seg.toString());
assertEquals(1, seg.keys().size());
assertEquals(3, seg.values().size());
}