diff --git a/Data/Polls.csv b/Data/Polls.csv index 385771b..58e64bd 100644 --- a/Data/Polls.csv +++ b/Data/Polls.csv @@ -1,15 +1,22 @@ PublYearMonth,Company,M,L,C,KD,S,V,MP,SD,FI,Uncertain,n,PublDate,collectPeriodFrom,collectPeriodTo,approxPeriod,house 2024-mar,Ipsos,20,4,4,3,36,9,4,19,NA,NA,NA,2024-03-26,2024-03-12,2024-03-24,FALSE,Ipsos +2024-mar,Novus,19.5,3.1,4.6,3.8,36.2,7.8,4.6,19.1,NA,9.7,2230,2024-03-22,2024-02-19,2024-03-17,FALSE,Novus +2024-mar,Sentio,15.7,4.5,4.9,3.5,34.2,8.9,4.7,21.5,NA,NA,NA,2024-03-19,2024-03-10,2024-03-16,TRUE,Sentio +2024-mar,Demoskop,19.9,3.0,3.3,3.2,36.4,7.6,4.2,20.8,NA,NA,NA,2024-03-14,2024-02-22,2024-03-11,FALSE,Demoskop +2024-mar,Verian,19.6,2.9,4.6,3.6,33.8,7.8,4.5,20.7,NA,NA,2998,2024-03-07,2024-02-19,2024-03-03,FALSE,Sifo 2024-mar,Ipsos,18.5,3.1,4.6,4.5,35,8,4,21,NA,NA,NA,2024-03-01,2024-02-13,2024-02-25,FALSE,Ipsos -2024-feb,Verian,19.6,2.9,4.6,3.6,33.8,7.8,4.5,20.7,NA,NA,2998,2024-03-07,2024-02-19,2024-03-03,FALSE,Sifo -2024-jan,Indikator,18.8,2.8,3.8,3.2,35.9,7.3,4.7,21.9,NA,NA,2413,2024-02-28,2024-02-04,2024-02-26,FALSE,Indikator +2024-feb,Indikator,18.8,2.8,3.8,3.2,35.9,7.3,4.7,21.9,NA,NA,2413,2024-02-28,2024-02-04,2024-02-26,FALSE,Indikator +2024-feb,Novus,18.7,3.3,4.8,3.2,35.4,8.9,3.8,20.5,NA,9.4,2324,2024-02-23,2024-01-22,2024-02-18,FALSE,Novus +2024-feb,Sentio,18.2,3.2,4.0,4.6,34.1,8.7,5.5,20.4,NA,NA,NA,2024-02-22,2024-02-15,2024-02-18,TRUE,Sentio +2024-feb,Demoskop,18.6,2.8,4.0,3.4,36.6,6.6,4.2,21.2,NA,NA,NA,2024-02-15,2024-01-27,2024-02-11,FALSE,Demoskop 2024-feb,Verian,17.5,3.4,4.3,3.6,35.7,7.8,4.5,21.4,NA,NA,3001,2024-02-08,2024-01-22,2024-02-04,FALSE,Sifo 2024-jan,Indikator,17.3,3.1,4.2,3.2,36.6,8.2,4.5,21.1,NA,NA,2479,2024-01-31,2024-01-05,2024-01-29,FALSE,Indikator 2024-jan,Ipsos,18,3,5,3,34,9,4,21,NA,NA,NA,2024-01-30,2024-01-16,2024-01-28,FALSE,Ipsos 2024-jan,Sentio,17.7,3.8,4.4,5.1,32.4,8.5,4.5,22.4,NA,NA,NA,2024-01-30,2024-01-22,2024-01-26,FALSE,Sentio 2024-jan,Verian,17.2,3.3,4.0,3.8,35.9,7.0,4.7,22.5,NA,NA,3004,2024-01-10,2023-12-25,2024-01-07,FALSE,Sifo +2024-jan,Novus,18.5,3.1,5.1,3.6,35.4,7.8,4.4,21.1,NA,10.3,2999,2024-01-25,2023-12-22,2024-01-21,FALSE,Novus 2024-jan,Skop,18.6,5.0,4.4,3.0,33.4,7.2,4.2,23.3,NA,NA,1014,2024-01-30,2023-12-21,2024-01-22,FALSE,Skop -2024-jan,Demoskop,18.3,2.1,3.7,3.7,37.7,7.1,4.2,21.9,NA,NA,2476,2024-01-11,2023-12-2,2024-01-08,FALSE,Demoskop +2024-jan,Demoskop,18.3,2.1,3.7,3.7,37.7,7.1,4.2,21.9,NA,NA,2476,2024-01-11,2023-12-02,2024-01-08,FALSE,Demoskop 2023-dec,Ipsos,15,3,5,3,35,9,4,24,NA,NA,NA,2023-12-20,2023-12-05,2023-12-17,FALSE,Ipsos 2023-dec,Novus,18.6,2.9,3.9,3.2,37.2,7.9,4.6,20.6,NA,13.3,2253,2023-12-15,2023-11-13,2023-12-10,FALSE,Novus 2023-dec,Verian,17.0,2.7,4.3,3.6,35.7,7.8,4.4,22.5,NA,NA,3011,2023-12-14,2023-11-27,2023-12-10,FALSE,Sifo diff --git a/polls.test.js b/polls.test.js index 03310e7..482bf06 100755 --- a/polls.test.js +++ b/polls.test.js @@ -62,7 +62,7 @@ test('Newer poll trends make sense', () => { expect(parties['KD'], `KD in (${poll}) has less than 2.6% support`).toBeGreaterThan(2.5) expect(parties['KD'], `KD in (${poll}) has more than 7.5% support`).toBeLessThan(7.5) - expect(parties['C'], `C in (${poll}) has less than 3.3% support`).toBeGreaterThan(3.3) + expect(parties['C'], `C in (${poll}) has less than 3.2% support`).toBeGreaterThan(3.2) expect(parties['C'], `C in (${poll}) has more than 8.9% support`).toBeLessThan(8.9) expect(parties['SD'], `SD in (${poll}) has less than 15.5% support`).toBeGreaterThan(15.4)