cat / 012
clone

a spreadsheet for the terminal: lotus 1-2-3 looks, google sheets keys and formulas, one go binary

Tests: FuzzRead seeds of the new rules and displays; German month names and parse errors end to end

Dami committed e1ce9df
commit
e1ce9dfeb19d46beb18ea0a5ecfebc0d5c42524e
parent
babeeed6c843b953240230e17004520dc9753bc5
author
Dami <dami.etoile@gmail.com>
kind
test risk score 0.1 of 3, Jev's estimate
2 files changed, +21 -0
Me2e/locale_test.go12++++++++++++
Minternal/sheet/filestream_test.go9+++++++++
M e2e/locale_test.go +12 -0
M internal/sheet/filestream_test.go +9 -0
@@ -223,6 +223,15 @@ func streamSeeds(t testing.TB) [][]byte {
223223 []byte(`{"version": 2, "cells": {"A1": {"input": "x", "wrap": "sideways"}, "B1": {"borders": {"left": "dotted"}}}}`),224224 []byte(`{"version": 2, "cells": {"A1": {"input": "5", "valign": "top", "borders": {"top": "thick", "topColor": "red", "left": "thin", "leftColor": "blue"}}, "B1": {"borders": {"rightColor": "green"}}}}`),225225 []byte(`{"version": 2, "cells": {"A1": {"input": "x", "valign": "sideways"}, "B1": {"borders": {"left": "thin", "leftColor": "mauve"}}}}`),226+ []byte(`{"version": 2, "cells": {"A1": "5"}, "conditionalFormats": [227+ {"ranges":"A1:A9","dataBar":{"color":"blue","min":{"type":"min"},"max":{"type":"percentile","value":"90"},"barOnly":true}},228+ {"ranges":"B1:B9","iconSet":{"icons":"circles","points":[{"type":"percent","value":"20"},{"type":"percent","value":"40"},{"type":"num","value":"6"},{"type":"percent","value":"80"}],"reverse":true}},229+ {"ranges":"C1:C9","condition":"top_percent","values":["10"],"fill":"green"},230+ {"ranges":"D1:D9","condition":"date_is","values":["next month"],"bold":true}],231+ "validations": [{"ranges":"E1:E9","criteria":"checkbox","items":["Yes","No"]}, {"ranges":"F1:F9","criteria":"list","items":["a"],"display":"chip"}]}`),232+ []byte(`{"version": 2, "conditionalFormats": [{"ranges":"A1","dataBar":{"color":"none","min":{"type":"min"},"max":{"type":"max"}}}]}`),233+ []byte(`{"version": 2, "conditionalFormats": [{"ranges":"A1","iconSet":{"icons":"symbols","points":[{"type":"percent","value":"50"}]}}]}`),234+ []byte(`{"version": 2, "validations": [{"ranges":"A1","criteria":"list","items":["a"],"display":"bubbles"}]}`),226235 []byte(`{"version": 2, "heights": {"0": 2}, "merges": ["A1:"], "cells": {}}`),227236 []byte(`null`), []byte(`[]`), []byte(`{"version": 2, "cells": {"A1": "1",}}`), []byte(`{"version": 2, "cells": {"A1"`),228237 }