refactor(tests): prefer link-index in structure collection golds
Move collection-* structure fixtures to [key](base), and modernize public/stdlib table/fs/time demos with bracket-marked library calls. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d55567a634
commit
ac3f0633cd
13 files changed
+49
-49
No files matched your search
@@ -14,9 +14,9 @@ description: Data cells evaluate like call-arg values (`var`, paths, hyphen pros
|
||||
|---------|-------|------|
|
||||
| `secret` | `name` | https://api.openai.com/v1 |
|
||||
|
||||
> print text=`cfg`[^api_key]
|
||||
> print text=`cfg`[^model]
|
||||
> print text=`cfg`[^base]
|
||||
> print text=[api_key](`cfg`)
|
||||
> print text=[model](`cfg`)
|
||||
> print text=[base](`cfg`)
|
||||
|
||||
`paths` =
|
||||
|
||||
@@ -24,7 +24,7 @@ description: Data cells evaluate like call-arg values (`var`, paths, hyphen pros
|
||||
|---|
|
||||
| /chat/completions |
|
||||
|
||||
> print text=`paths`[^1]
|
||||
> print text=[1](`paths`)
|
||||
|
||||
`rec` =
|
||||
|
||||
@@ -32,7 +32,7 @@ description: Data cells evaluate like call-arg values (`var`, paths, hyphen pros
|
||||
|---|------|---------|
|
||||
| 1 | user | `secret` |
|
||||
|
||||
> print text=`rec`[^1][^content]
|
||||
> print text=[content]([1](`rec`))
|
||||
|
||||
`ratios` =
|
||||
|
||||
@@ -41,5 +41,5 @@ description: Data cells evaluate like call-arg values (`var`, paths, hyphen pros
|
||||
| "1/5" |
|
||||
| "16/9" |
|
||||
|
||||
> print text=`ratios`[^1]
|
||||
> print text=`ratios`[^2]
|
||||
> print text=[1](`ratios`)
|
||||
> print text=[2](`ratios`)
|
||||
@@ -11,14 +11,14 @@ title: 横表多行 → 字典套列表
|
||||
| 红富士 | 青瓜 |
|
||||
| 嘎啦 | 黄瓜条 |
|
||||
|
||||
**第一种苹果 = 货架[^苹果][^1]**
|
||||
**第一种苹果 = [1]([苹果](货架))**
|
||||
|
||||
> print text=`第一种苹果`
|
||||
|
||||
**列 = 货架[^苹果]**
|
||||
**列 = [苹果](货架)**
|
||||
|
||||
> print text=`列`
|
||||
|
||||
**第二种黄瓜 = 货架[^黄瓜][^2]**
|
||||
**第二种黄瓜 = [2]([黄瓜](货架))**
|
||||
|
||||
> print text=`第二种黄瓜`
|
||||
@@ -10,15 +10,15 @@ title: 横表单行 → 字典
|
||||
|------|------|------|
|
||||
| 水果 | 蔬菜 | 数码用品 |
|
||||
|
||||
**种 = 分类[^苹果]**
|
||||
**种 = [苹果](分类)**
|
||||
|
||||
> print text=`种`
|
||||
|
||||
**种 = 分类[^黄瓜]**
|
||||
**种 = [黄瓜](分类)**
|
||||
|
||||
> print text=`种`
|
||||
|
||||
**种 = 分类[^鼠标]**
|
||||
**种 = [鼠标](分类)**
|
||||
|
||||
> print text=`种`
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ title: row records with @ marker
|
||||
| 1 | apple | 2 |
|
||||
| 2 | pear | 3 |
|
||||
|
||||
**n = orders[^1][^name]**
|
||||
**n = [name]([1](orders))**
|
||||
|
||||
> print text=`n`
|
||||
|
||||
**q = orders[^2][^qty]**
|
||||
**q = [qty]([2](orders))**
|
||||
|
||||
> print text=`q`
|
||||
@@ -11,15 +11,15 @@ title: 行向记录表(首列 行 / @)
|
||||
| 1 | 苹果 | 2 |
|
||||
| 2 | 梨 | 3 |
|
||||
|
||||
**第一 = 订单[^1]**
|
||||
**第一 = [1](订单)**
|
||||
|
||||
> print text=`第一`
|
||||
|
||||
**名 = 订单[^1][^品名]**
|
||||
**名 = [品名]([1](订单))**
|
||||
|
||||
> print text=`名`
|
||||
|
||||
**量 = 订单[^2][^数量]**
|
||||
**量 = [数量]([2](订单))**
|
||||
|
||||
> print text=`量`
|
||||
|
||||
|
||||
Reference in new issue
Block a user