oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package runnerproto
2
3import (
4 "encoding/json"
5 "testing"
6)
7
8func TestQuestionOptionLabels(t *testing.T) {
9 fields := QuestionFields("question", `{"provider":"claude","name":"AskUserQuestion","input":{"questions":[{"question":"Which total?","options":[{"label":"Net"},{"label":"Subtotal"}]}]}}`)
10 raw, err := json.Marshal(fields)
11 if err != nil || string(raw) != `[{"Key":"Which total?","Prompt":"Which total?","Options":["Net","Subtotal"]}]` {
12 t.Fatalf("options lost: %s, %v", raw, err)
13 }
14}
15