# Smoke test — one JSON command per line
{"op":"AddCategory","name":"Region"}
{"op":"AddCategory","name":"Product"}
{"op":"AddCategory","name":"Measure"}
{"op":"AddItem","category":"Region","item":"East"}
{"op":"AddItem","category":"Region","item":"West"}
{"op":"AddItem","category":"Product","item":"Shirts"}
{"op":"AddItem","category":"Product","item":"Pants"}
{"op":"AddItem","category":"Measure","item":"Revenue"}
{"op":"AddItem","category":"Measure","item":"Cost"}
{"op":"SetCell","coords":[["Region","East"],["Product","Shirts"],["Measure","Revenue"]],"number":1200}
{"op":"SetCell","coords":[["Region","East"],["Product","Shirts"],["Measure","Cost"]],"number":400}
{"op":"SetCell","coords":[["Region","East"],["Product","Pants"],["Measure","Revenue"]],"number":800}
{"op":"SetCell","coords":[["Region","East"],["Product","Pants"],["Measure","Cost"]],"number":300}
{"op":"SetCell","coords":[["Region","West"],["Product","Shirts"],["Measure","Revenue"]],"number":950}
{"op":"SetCell","coords":[["Region","West"],["Product","Shirts"],["Measure","Cost"]],"number":320}
{"op":"AddFormula","raw":"Profit = Revenue - Cost","target_category":"Measure"}
{"op":"CreateView","name":"By Region"}
{"op":"SetAxis","category":"Region","axis":"column"}
{"op":"SetAxis","category":"Product","axis":"row"}
{"op":"SetAxis","category":"Measure","axis":"page"}
{"op":"Save","path":"/tmp/smoke_test.improv"}
