All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.scs2.definition.yoComposite.YoTuple2DDefinitionTest Maven / Gradle / Ivy

There is a newer version: 17-0.28.3
Show newest version
package us.ihmc.scs2.definition.yoComposite;

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.Random;

import org.junit.jupiter.api.Test;

import us.ihmc.scs2.definition.DefinitionRandomTools;

public class YoTuple2DDefinitionTest
{
   @Test
   public void testToStringAndParse()
   {
      Random random = new Random(3411);

      for (int i = 0; i < 1000; i++)
      {
         YoTuple2DDefinition original = DefinitionRandomTools.nextYoTuple2DDefinition(random);
         YoTuple2DDefinition parsed = YoTuple2DDefinition.parse(original.toString());

         assertEquals(original, parsed);
      }
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy