You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.EqualError(t, f.AddShape("Sheet3", "H1", `{"type":"ellipseRibbon", "color":{"line":"#4286f4","fill":"#8eb9ff"}, "paragraph":[{"font":{"bold":true,"italic":true,"family":"Times New Roman","size":36,"color":"#777777","underline":"single"}}], "height": 90}`), "sheet Sheet3 is not exist")
assert.EqualError(t, f.AddShape("Sheet3", "H1", ""), "unexpected end of JSON input")
21
-
assert.EqualError(t, f.AddShape("Sheet1", "A", `{"type":"rect","paragraph":[{"text":"Rectangle","font":{"color":"CD5C5C"}},{"text":"Shape","font":{"bold":true,"color":"2980B9"}}]}`), `cannot convert cell "A" to coordinates: invalid cell name "A"`)
41
+
assert.EqualError(t, f.AddShape("Sheet1", "A", `{
42
+
"type": "rect",
43
+
"paragraph": [
44
+
{
45
+
"text": "Rectangle",
46
+
"font":
47
+
{
48
+
"color": "CD5C5C"
49
+
}
50
+
},
51
+
{
52
+
"text": "Shape",
53
+
"font":
54
+
{
55
+
"bold": true,
56
+
"color": "2980B9"
57
+
}
58
+
}]
59
+
}`), `cannot convert cell "A" to coordinates: invalid cell name "A"`)
0 commit comments