diff options
Diffstat (limited to 'tests/typ/compute/data.typ')
| -rw-r--r-- | tests/typ/compute/data.typ | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/typ/compute/data.typ b/tests/typ/compute/data.typ index 5a0f76c6..dc563022 100644 --- a/tests/typ/compute/data.typ +++ b/tests/typ/compute/data.typ @@ -19,8 +19,8 @@ // Ref: true #set page(width: auto) #let data = csv("/res/zoo.csv") -#let cells = data(0).map(strong) + data.slice(1).flatten() -#table(columns: data(0).len(), ..cells) +#let cells = data.at(0).map(strong) + data.slice(1).flatten() +#table(columns: data.at(0).len(), ..cells) --- // Error: 6-16 file not found (searched at typ/compute/nope.csv) @@ -34,8 +34,8 @@ // Test reading JSON data. #let data = json("/res/zoo.json") #test(data.len(), 3) -#test(data(0).name, "Debby") -#test(data(2).weight, 150) +#test(data.at(0).name, "Debby") +#test(data.at(2).weight, 150) --- // Error: 7-22 failed to parse json file: syntax error in line 3 |
