You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
706 B
28 lines
706 B
package mightypork.test;
|
|
|
|
|
|
import java.util.Locale;
|
|
|
|
import mightypork.util.objects.Convert;
|
|
|
|
|
|
public class TestConvert {
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
Locale.setDefault(Locale.ENGLISH);
|
|
|
|
System.out.println(Convert.toVect("(10:20:30)"));
|
|
System.out.println(Convert.toVect("30.6 ; 80"));
|
|
System.out.println(Convert.toVect("30.6"));
|
|
|
|
System.out.println(Convert.toRange("10"));
|
|
System.out.println(Convert.toRange("10..60"));
|
|
System.out.println(Convert.toRange("10-60"));
|
|
System.out.println(Convert.toRange("10--60"));
|
|
System.out.println(Convert.toRange("-10--60"));
|
|
System.out.println(Convert.toRange("3.1;22"));
|
|
System.out.println(Convert.toRange("3.1|22"));
|
|
|
|
}
|
|
}
|
|
|