From f70cea508cd30fa40770ea989fe2a19e715a357b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 30 Dec 2022 15:13:28 +0100 Subject: Remove index syntax in favor of accessor methods --- tests/typ/compute/data.typ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/typ/compute/data.typ') 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 -- cgit v1.2.3