@@ -445,6 +445,9 @@ public void test_Special_time_datehour (){
445445 public void test_Special_time_timestamp (){
446446 LocalDateTime dt = LocalDateTime .of (2022 ,1 ,31 ,2 ,2 ,2 ,4000000 );
447447 BasicTimestamp date = new BasicTimestamp (dt );
448+ LocalDateTime dt1 = LocalDateTime .of (2023 ,9 ,18 ,14 ,51 ,24 ,000 );
449+ BasicTimestamp date1 = new BasicTimestamp (dt1 );
450+ System .out .println (date1 .getLong ());
448451 String [] lt =dt .toString ().split ("\\ -" );
449452 assertEquals (lt [0 ]+"." +lt [1 ]+"." +lt [2 ],date .getString ());
450453 dt = LocalDateTime .of (2022 ,2 ,28 ,2 ,2 ,2 ,4000000 );
@@ -682,6 +685,16 @@ public void test_BasicMinute() throws Exception {
682685 BasicMinute nt3 = new BasicMinute (100 );
683686 System .out .println (nt3 .getString ());
684687 assertEquals ("01:40m" ,nt3 .getString ());
688+ }
689+ @ Test
690+ public void test_BasicMonth_negative () throws Exception {
691+ String re = null ;
692+ try {
693+ BasicMonth nt1 = new BasicMonth (-5 );
694+ }catch (Exception e ){
695+ re = e .getMessage ();
696+ }
697+ assertEquals ("number -5 is invalid, it must be non-negative integer" ,re );
685698
686699 }
687700 @ Test
0 commit comments