aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mageia.org>2012-08-09 21:20:08 +0000
committerGuillaume Rousse <guillomovitch@mageia.org>2012-08-09 21:20:08 +0000
commit42163df5267f8ab37979581f201c548ff96cace0 (patch)
tree42481c28392ef6f2a9b12c21159dc963a07c4baa /t
parent1d0daf4a6b6f82623f9124b32fce5609b6ea97bb (diff)
downloadperl-Parse-EDID-42163df5267f8ab37979581f201c548ff96cace0.tar
perl-Parse-EDID-42163df5267f8ab37979581f201c548ff96cace0.tar.gz
perl-Parse-EDID-42163df5267f8ab37979581f201c548ff96cace0.tar.bz2
perl-Parse-EDID-42163df5267f8ab37979581f201c548ff96cace0.tar.xz
perl-Parse-EDID-42163df5267f8ab37979581f201c548ff96cace0.zip
test second serial number too
Diffstat (limited to 't')
-rw-r--r--t/parse_edid.t53
1 files changed, 53 insertions, 0 deletions
diff --git a/t/parse_edid.t b/t/parse_edid.t
index c518e79..14fd979 100644
--- a/t/parse_edid.t
+++ b/t/parse_edid.t
@@ -13,6 +13,7 @@ my %tests = (
monitor_name => 'A1554NEL',
EISA_ID => 'LTNa543',
serial_number => '16843009',
+ serial_number2 => '926750447',
VertRefresh => '50-100',
HorizSync => '30-54',
max_size_horizontal => 28,
@@ -24,6 +25,7 @@ my %tests = (
monitor_name => 'DELL D1626HT',
EISA_ID => 'DEL515b',
serial_number => '808868404',
+ serial_number2 => '55347B06Z418',
VertRefresh => '50-160',
HorizSync => '30-107',
max_size_horizontal => 38,
@@ -35,6 +37,7 @@ my %tests = (
monitor_name => 'DELL P1110',
EISA_ID => 'DEL50ab',
serial_number => '810173271',
+ serial_number2 => '9171RB0JCW89',
VertRefresh => '48-160',
HorizSync => '30-121',
max_size_horizontal => 40,
@@ -46,6 +49,7 @@ my %tests = (
monitor_name => 'DELL P790',
EISA_ID => 'DEL62f5',
serial_number => '961631577',
+ serial_number2 => '8757RH9QUY80',
VertRefresh => '50-150',
HorizSync => '31-92',
max_size_horizontal => 32,
@@ -57,6 +61,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'MEI264a',
serial_number => '6310',
+ serial_number2 => undef,
VertRefresh => '50-120',
HorizSync => '30-61',
max_size_horizontal => 28,
@@ -68,6 +73,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'EMC0313',
serial_number => '6538',
+ serial_number2 => undef,
VertRefresh => '50-160',
HorizSync => '30-86',
max_size_horizontal => 32,
@@ -79,6 +85,7 @@ my %tests = (
monitor_name => 'L70S+',
EISA_ID => 'IQT0704',
serial_number => '57579',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33,
@@ -90,6 +97,7 @@ my %tests = (
monitor_name => 'LS902U',
EISA_ID => 'IVM1938',
serial_number => '128958',
+ serial_number2 => undef,
VertRefresh => '50-160',
HorizSync => '30-96',
max_size_horizontal => 36,
@@ -101,6 +109,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'IVM1744',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 32,
@@ -112,6 +121,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'IVM1740',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 32,
@@ -123,6 +133,7 @@ my %tests = (
monitor_name => 'COMPAQ P710',
EISA_ID => 'CPQ1384',
serial_number => '1630548021',
+ serial_number2 => '047ch67ha005',
VertRefresh => '50-140',
HorizSync => '30-96',
max_size_horizontal => 31.2,
@@ -134,6 +145,7 @@ my %tests = (
monitor_name => 'Studioworks N 2200P',
EISA_ID => 'GSM55f3',
serial_number => '52846',
+ serial_number2 => undef,
VertRefresh => '50-160',
HorizSync => '30-124',
max_size_horizontal => 40,
@@ -145,6 +157,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'MED2914',
serial_number => '16843009',
+ serial_number2 => '108371572',
VertRefresh => '50-120',
HorizSync => '30-98',
max_size_horizontal => 36,
@@ -156,6 +169,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'NOK00b7',
serial_number => '3355',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 30,
@@ -167,6 +181,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'SAM1035',
serial_number => '1146106165',
+ serial_number2 => 'HXAKB13419',
VertRefresh => '50-120',
HorizSync => '30-61',
max_size_horizontal => 28,
@@ -178,6 +193,7 @@ my %tests = (
monitor_name => 'S/M 550v',
EISA_ID => 'SAM12b6',
serial_number => '1146106165',
+ serial_number2 => 'HXBN407938',
VertRefresh => '50-120',
HorizSync => '30-55',
max_size_horizontal => 28,
@@ -189,6 +205,7 @@ my %tests = (
monitor_name => 'GDM-400PST9',
EISA_ID => 'SNY0090',
serial_number => '6005379',
+ serial_number2 => '6005379',
VertRefresh => '48-160',
HorizSync => '30-95',
max_size_horizontal => 37,
@@ -200,6 +217,7 @@ my %tests = (
monitor_name => 'CPD-G420',
EISA_ID => 'SNY0490',
serial_number => '16843009',
+ serial_number2 => '6017706',
VertRefresh => '48-170',
HorizSync => '30-110',
max_size_horizontal => 36,
@@ -211,6 +229,7 @@ my %tests = (
monitor_name => 'COMPAQ MV920',
EISA_ID => 'CPQ3027',
serial_number => '1094268470',
+ serial_number2 => '008GA23MA966',
VertRefresh => '50-160',
HorizSync => '30-96',
max_size_horizontal => 36,
@@ -222,6 +241,7 @@ my %tests = (
monitor_name => 'B102005',
EISA_ID => 'MAX07d3',
serial_number => '831',
+ serial_number2 => undef,
VertRefresh => '50-85',
HorizSync => '30-83',
max_size_horizontal => 40.8,
@@ -233,6 +253,7 @@ my %tests = (
monitor_name => 'Acer AL1921',
EISA_ID => 'ACRad25',
serial_number => '1146094041',
+ serial_number2 => 'ETL2508043',
VertRefresh => '55-75',
HorizSync => '30-83',
max_size_horizontal => 37.6,
@@ -244,6 +265,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'QDS0014',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -255,6 +277,7 @@ my %tests = (
monitor_name => 'B_101750',
EISA_ID => 'MAX06ac',
serial_number => '537',
+ serial_number2 => undef,
VertRefresh => '56-75',
HorizSync => '30-84',
max_size_horizontal => 33.8,
@@ -266,6 +289,7 @@ my %tests = (
monitor_name => 'BenQ T904',
EISA_ID => 'BNQ7681',
serial_number => '6522',
+ serial_number2 => undef,
VertRefresh => '56-76',
HorizSync => '31-83',
max_size_horizontal => 37.6,
@@ -277,6 +301,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'AUO0f03',
serial_number => '657',
+ serial_number2 => undef,
VertRefresh => '40-69',
HorizSync => '63-73',
max_size_horizontal => 30.5,
@@ -288,6 +313,7 @@ my %tests = (
monitor_name => 'CMC 17" AD',
EISA_ID => 'CMO7801',
serial_number => '0',
+ serial_number2 => '0',
VertRefresh => '50-75',
HorizSync => '30-82',
max_size_horizontal => 33.8,
@@ -299,6 +325,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'LGP6e54',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 30,
@@ -310,6 +337,7 @@ my %tests = (
monitor_name => 'DELL 2001FP',
EISA_ID => 'DELa007',
serial_number => '860574796',
+ serial_number2 => 'C064652L3KTL',
VertRefresh => '56-76',
HorizSync => '31-80',
max_size_horizontal => 41,
@@ -321,6 +349,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => undef,
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -332,6 +361,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'CMO1526',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -343,6 +373,7 @@ my %tests = (
monitor_name => 'CY965',
EISA_ID => 'PTS03c5',
serial_number => '19190',
+ serial_number2 => 'F3AJ3A0019190',
VertRefresh => '60-75',
HorizSync => '30-80',
max_size_horizontal => 37.6,
@@ -354,6 +385,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => undef,
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -365,6 +397,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => undef,
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -376,6 +409,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'QDS0014',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -387,6 +421,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'AUO3214',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 26.1,
@@ -398,6 +433,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => 'LEN4055',
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33.1,
@@ -409,6 +445,7 @@ my %tests = (
monitor_name => 'PHILIPS 150S',
EISA_ID => 'PHL0805',
serial_number => '237',
+ serial_number2 => ' HD 000237',
VertRefresh => '56-75',
HorizSync => '30-61',
max_size_horizontal => 30,
@@ -420,6 +457,7 @@ my %tests = (
monitor_name => 'Philips 180B2',
EISA_ID => 'PHL0810',
serial_number => '21838',
+ serial_number2 => ' HD 021838',
VertRefresh => '56-76',
HorizSync => '30-82',
max_size_horizontal => 35.9,
@@ -431,6 +469,7 @@ my %tests = (
monitor_name => undef,
EISA_ID => undef,
serial_number => '0',
+ serial_number2 => undef,
VertRefresh => undef,
HorizSync => undef,
max_size_horizontal => 33,
@@ -442,6 +481,7 @@ my %tests = (
monitor_name => 'B101715',
EISA_ID => 'MAX06b5',
serial_number => '1509',
+ serial_number2 => undef,
VertRefresh => '56-75',
HorizSync => '31-83',
max_size_horizontal => 34,
@@ -453,6 +493,7 @@ my %tests = (
monitor_name => 'L557',
EISA_ID => 'ENC1689',
serial_number => '16843009',
+ serial_number2 => '82522083',
VertRefresh => '59-61',
HorizSync => '31-64',
max_size_horizontal => 33.7,
@@ -464,6 +505,7 @@ my %tests = (
monitor_name => 'SyncMaster',
EISA_ID => 'SAM0080',
serial_number => '1195913529',
+ serial_number2 => 'HCHW600639',
VertRefresh => '56-85',
HorizSync => '30-81',
max_size_horizontal => 38,
@@ -475,6 +517,7 @@ my %tests = (
monitor_name => 'VQ32-1T',
EISA_ID => 'FUS065b',
serial_number => '1',
+ serial_number2 => undef,
VertRefresh => '49-76',
HorizSync => '28-65',
max_size_horizontal => 69.8,
@@ -486,6 +529,7 @@ my %tests = (
monitor_name => 'Acer AL1916',
EISA_ID => 'ACRad49',
serial_number => '1905275078',
+ serial_number2 => 'L49086694237',
VertRefresh => '55-75',
HorizSync => '30-83',
max_size_horizontal => 37.6,
@@ -497,6 +541,7 @@ my %tests = (
monitor_name => 'Acer AL1916',
EISA_ID => 'ACRad49',
serial_number => '1905275535',
+ serial_number2 => 'L49086694237',
VertRefresh => '55-75',
HorizSync => '30-83',
max_size_horizontal => 37.6,
@@ -508,6 +553,7 @@ my %tests = (
monitor_name => 'Acer AL1916',
EISA_ID => 'ACRad49',
serial_number => '1905275537',
+ serial_number2 => 'L49086694237',
VertRefresh => '55-75',
HorizSync => '30-83',
max_size_horizontal => 37.6,
@@ -519,6 +565,7 @@ my %tests = (
monitor_name => 'Acer AL1916',
EISA_ID => 'ACRad49',
serial_number => '1905275536',
+ serial_number2 => 'L49086694237',
VertRefresh => '55-75',
HorizSync => '30-83',
max_size_horizontal => 37.6,
@@ -567,4 +614,10 @@ sub check_result {
$field
);
}
+
+ is(
+ $got->{serial_number2}->[0],
+ $expected->{serial_number2},
+ 'serial_number2'
+ );
}