
IDE:   1.8.19
BOARD: UNO R3


test_angle01.ino
ANGLE_LIB_VERSION: 0.2.1


1. print -- Angle(d, m, s, t)
1.02'03"0004
45.30'00"0000
2.03'04"0005
0.00'00"0000
5.30'00"0000

1. print -- negative angles
-1.02'03"0045
-0.02'03"0045
-0.00'03"0045
-0.00'00"0045

1. Constructor(char *)
179.999999999
179.59'59"9999
180.000000000
179.59'59"9999
180.00'00"0000
-45.59'15"5555
-45.987655639
-45.59'15"5555
-0.59'15"5555
-0.987654304
-45.59'15"5555

2.1 toDouble  -- Angle(double)   toRadians()
1.0341668
45.5000000
2.0511112

2.03'04"0005
2.03'04"0004
2.0511112
2.0511112
0.0357986
3.1415927

2.2 toDouble  -- negative angles
-1.02'03"0045
-1.0341678
-0.02'03"0045
-0.0341679
-0.00'03"0045
-0.0008346
-0.00'00"0045
-0.0000012


2.3 toDouble - fromRadians
360.00'00"0000
180.00'00"0000
90.00'00"0000
60.00'00"0000
45.00'00"0000
30.00'00"0000
15.00'00"0000
10.00'00"0000
5.00'00"0000
0.59'59"9996


3. degrees, minutes, seconds, thousands
2.03'04"0005
0
1
2
3
4
5

-0.00'03"0045
0
-1
0
0
3
45

0.00'00"0000
1
1
0
0
0
0


6. negate  
1.02'03"0004
-1.02'03"0004
1.02'03"0004
-0.01'02"0003
-0.00'02"0003
-0.00'00"0003
0.00'00"0000

4. Compare: a op a  op:  ==  !=  <  <=  >  >=
   should be 100101
1.02'03"0004
100101

4. Compare: a op c  op:  ==  !=  <  <=  >  >=
   should be 011100
1.02'03"0004
2.03'04"0005
011100

4. Compare: -a op c  op:  ==  !=  <  <=  >  >=
   should be 011100
-1.02'03"0004
2.03'04"0005
011100

4. Compare: -a op -c  op:  ==  !=  <  <=  >  >=
   should be 010011
-1.02'03"0004
-2.03'04"0005
010011

7.1 Add  +
-1.00'00"0000	+	-1.00'00"0000	=	-2.00'00"0000
-1.00'00"0000	+	0.00'00"0000	=	-1.00'00"0000
-1.00'00"0000	+	1.00'00"0000	=	0.00'00"0000
0.00'00"0000	+	-1.00'00"0000	=	-1.00'00"0000
0.00'00"0000	+	0.00'00"0000	=	0.00'00"0000
0.00'00"0000	+	1.00'00"0000	=	1.00'00"0000
1.00'00"0000	+	-1.00'00"0000	=	0.00'00"0000
1.00'00"0000	+	0.00'00"0000	=	1.00'00"0000
1.00'00"0000	+	1.00'00"0000	=	2.00'00"0000

7.2 Add  +=
-1.00'00"0000	+=	-1.00'00"0000	results in	-2.00'00"0000
-1.00'00"0000	+=	0.00'00"0000	results in	-1.00'00"0000
-1.00'00"0000	+=	1.00'00"0000	results in	0.00'00"0000
0.00'00"0000	+=	-1.00'00"0000	results in	-1.00'00"0000
0.00'00"0000	+=	0.00'00"0000	results in	0.00'00"0000
0.00'00"0000	+=	1.00'00"0000	results in	1.00'00"0000
1.00'00"0000	+=	-1.00'00"0000	results in	0.00'00"0000
1.00'00"0000	+=	0.00'00"0000	results in	1.00'00"0000
1.00'00"0000	+=	1.00'00"0000	results in	2.00'00"0000

7.3 Add  - 1000 random tests - no output is ok

7.4 Add  - 1000 random tests - no output is ok

7.5 Add a double to an angle 
0	-131.93	-50.74	-182.40'11"9934
1	-15.63	-48.64	-64.16'12"0154
2	-98.94	19.52	-79.25'11"9934
3	-76.70	179.67	102.58'12"0594
4	6.00	130.36	136.21'35"9474
5	-103.84	95.15	-8.41'24"0087
6	144.46	-94.01	50.26'59"9615
7	16.77	33.12	49.53'23"9978
8	4.80	-63.64	-58.50'23"9868
9	31.24	109.10	140.20'24"0418

8.1 Subtract  -
-1.00'00"0000	-	-1.00'00"0000	=	0.00'00"0000
-1.00'00"0000	-	0.00'00"0000	=	-1.00'00"0000
-1.00'00"0000	-	1.00'00"0000	=	-2.00'00"0000
0.00'00"0000	-	-1.00'00"0000	=	1.00'00"0000
0.00'00"0000	-	0.00'00"0000	=	0.00'00"0000
0.00'00"0000	-	1.00'00"0000	=	-1.00'00"0000
1.00'00"0000	-	-1.00'00"0000	=	2.00'00"0000
1.00'00"0000	-	0.00'00"0000	=	1.00'00"0000
1.00'00"0000	-	1.00'00"0000	=	0.00'00"0000

8.2 Subtract  -=
-1.00'00"0000	-=	-1.00'00"0000	results in	0.00'00"0000
-1.00'00"0000	-=	0.00'00"0000	results in	-1.00'00"0000
-1.00'00"0000	-=	1.00'00"0000	results in	-2.00'00"0000
0.00'00"0000	-=	-1.00'00"0000	results in	1.00'00"0000
0.00'00"0000	-=	0.00'00"0000	results in	0.00'00"0000
0.00'00"0000	-=	1.00'00"0000	results in	-1.00'00"0000
1.00'00"0000	-=	-1.00'00"0000	results in	2.00'00"0000
1.00'00"0000	-=	0.00'00"0000	results in	1.00'00"0000
1.00'00"0000	-=	1.00'00"0000	results in	0.00'00"0000

8.3 Sub - 1000 random tests - no output is ok

8.4 Sub - 1000 random tests - no output is ok

9. Multiply  *  *=
5.15'00"0000
28.52'30"0000
89.30'44"9890

10. Divide  /  /=
89.30'44"9890
28.52'30"0000
5.15'00"0000
1.40'16"0566

11. Ratio
7.30'00"0000
57.27'24"4336
7.6609048
180.00'00"0000
57.17'44"8088
3.1415925

Done...
