@@ -54,7 +54,7 @@ func TestParseHistoricDataset(t *testing.T) {
54
54
}
55
55
56
56
func TestParseStandardDataset (t * testing.T ) {
57
- frame := "ADCO\t 021528603314 \t # "
57
+ frame := "ADCO\t 1234567890123 \t , "
58
58
dataset , err := parseStandardDataset (frame )
59
59
if err != nil {
60
60
t .Errorf ("Unexpected error: %s" , err )
@@ -64,8 +64,8 @@ func TestParseStandardDataset(t *testing.T) {
64
64
t .Errorf ("Expected label ADCO, got %s" , dataset .Label )
65
65
}
66
66
67
- if dataset .Data != "021528603314 " {
68
- t .Errorf ("Expected data 021528603314 , got %s" , dataset .Data )
67
+ if dataset .Data != "1234567890123 " {
68
+ t .Errorf ("Expected data 1234567890123 , got %s" , dataset .Data )
69
69
}
70
70
71
71
if dataset .Valid != true {
@@ -80,8 +80,10 @@ func TestCalculateChecksum(t *testing.T) {
80
80
}{
81
81
{"IINST 002" , "Y" }, // historical format
82
82
{"IMAX 090" , "H" },
83
- {"IINST\t 002" , "B" }, // standard format sans horodatage
84
- {"ADCO\t 021528603314" , "#" },
83
+ {"SINSTS\t 00520\t " , "M" }, // standard format sans horodatage
84
+ {"SMAXSN\t H250221001022\t 02560\t " , "+" }, // avec horodatages
85
+ {"STGE\t 003AC001\t " , "M" },
86
+ {"ADCO\t 1234567890123\t " , "," },
85
87
}
86
88
87
89
for _ , test := range tests {
0 commit comments