Skip to content

Commit 1c8573d

Browse files
committed
📰 add the missing test case
1 parent b5ec269 commit 1c8573d

File tree

1 file changed

+111
-2
lines changed

1 file changed

+111
-2
lines changed

tests/test_bug_fixes.py

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,121 @@
11
import os
2-
3-
# from nose import eq_
2+
from nose.tools import eq_
43
from pyexcel_xlsxr import get_data
54

65

76
def test_issue_1():
87
test_file = get_fixture("issue_1.xlsx")
98
data = get_data(test_file)
9+
eq_(
10+
data["dataSheet1"],
11+
[
12+
["", "D0"],
13+
["Pads", "PADA"],
14+
["Timestamp", "13:26:26.375087"],
15+
["I", "V"],
16+
[0.0, 0.7830809999999999],
17+
[1.0, 1.11145],
18+
[2.0, 1.176147],
19+
[3.0, 1.222229],
20+
[4.0, 1.25946],
21+
[5.0, 1.293334],
22+
[6.0, 1.323852],
23+
[7.0, 1.351623],
24+
[8.0, 1.3778679999999999],
25+
[9.0, 1.402893],
26+
[10.0, 1.427001],
27+
[11.0, 1.449279],
28+
[12.0, 1.471252],
29+
[13.0, 1.4923089999999999],
30+
[14.0, 1.512451],
31+
[15.0, 1.531982],
32+
[16.0, 1.551513],
33+
[17.0, 1.5701289999999999],
34+
[18.0, 1.588134],
35+
[19.0, 1.606445],
36+
[20.0, 1.623535],
37+
[21.0, 1.64093],
38+
[22.0, 1.657714],
39+
[23.0, 1.674804],
40+
[24.0, 1.6906729999999999],
41+
[25.0, 1.707153],
42+
[26.0, 1.7233269999999998],
43+
[27.0, 1.738586],
44+
[28.0, 1.7544549999999999],
45+
[29.0, 1.769104],
46+
[30.0, 1.784667],
47+
[31.0, 1.799316],
48+
[32.0, 1.8148799999999998],
49+
[33.0, 1.8286129999999998],
50+
[34.0, 1.8432609999999998],
51+
[35.0, 1.85791],
52+
[36.0, 1.871948],
53+
[37.0, 1.885986],
54+
[38.0, 1.900329],
55+
[39.0, 1.913452],
56+
[40.0, 1.92749],
57+
[41.0, 1.941223],
58+
[42.0, 1.954345],
59+
[43.0, 1.967773],
60+
[44.0, 1.9808949999999999],
61+
[45.0, 1.9940179999999998],
62+
[46.0, 2.007446],
63+
[47.0, 2.019958],
64+
[48.0, 2.03247],
65+
[49.0, 2.0455929999999998],
66+
[50.0, 2.05841],
67+
[51.0, 2.071228],
68+
[52.0, 2.083129],
69+
[53.0, 2.095336],
70+
[54.0, 2.1072379999999997],
71+
[55.0, 2.120056],
72+
[56.0, 2.131652],
73+
[57.0, 2.143859],
74+
[58.0, 2.156066],
75+
[59.0, 2.167663],
76+
[60.0, 2.1795649999999998],
77+
[61.0, 2.191162],
78+
[62.0, 2.2021479999999998],
79+
[63.0, 2.214355],
80+
[64.0, 2.225646],
81+
[65.0, 2.236633],
82+
[66.0, 2.247009],
83+
[67.0, 2.258911],
84+
[68.0, 2.269897],
85+
[69.0, 2.2808829999999998],
86+
[70.0, 2.2915639999999997],
87+
[71.0, 2.302246],
88+
[72.0, 2.3138419999999997],
89+
[73.0, 2.3245229999999997],
90+
[74.0, 2.334899],
91+
[75.0, 2.3455809999999997],
92+
[76.0, 2.356262],
93+
[77.0, 2.366333],
94+
[78.0, 2.376708],
95+
[79.0, 2.3864739999999998],
96+
[80.0, 2.3971549999999997],
97+
[81.0, 2.407531],
98+
[82.0, 2.417602],
99+
[83.0, 2.427673],
100+
[84.0, 2.438354],
101+
[85.0, 2.4472039999999997],
102+
[86.0, 2.457885],
103+
[87.0, 2.467956],
104+
[88.0, 2.477722],
105+
[89.0, 2.487487],
106+
[90.0, 2.4978629999999997],
107+
[91.0, 2.506408],
108+
[92.0, 2.515869],
109+
[93.0, 2.5256339999999997],
110+
[94.0, 2.535095],
111+
[95.0, 2.54425],
112+
[96.0, 2.5537099999999997],
113+
[97.0, 2.562866],
114+
[98.0, 2.572021],
115+
[99.0, 2.5805659999999997],
116+
[100.0, 2.589721],
117+
],
118+
)
10119

11120

12121
def get_fixture(file_name):

0 commit comments

Comments
 (0)