package redis.clients.jedis.tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import redis.clients.jedis.BuilderFactory;

public class BuilderFactoryTest {
  @Test
  public void buildDouble() {
    Double build = BuilderFactory.DOUBLE.build("1.0".getBytes());
    assertEquals(new Double(1.0), build);
  }
}
@@ -323,13 +323,381 @@
 build);%0A
+    build = BuilderFactory.DOUBLE.build(%22inf%22.getBytes());%0A    assertEquals(new Double(Double.POSITIVE_INFINITY), build);%0A    build = BuilderFactory.DOUBLE.build(%22+inf%22.getBytes());%0A    assertEquals(new Double(Double.POSITIVE_INFINITY), build);%0A    build = BuilderFactory.DOUBLE.build(%22-inf%22.getBytes());%0A    assertEquals(new Double(Double.NEGATIVE_INFINITY), build);%0A
   %7D%0A%7D

Add infinity reading tests (#1704)