diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-30 15:13:28 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-30 16:45:41 +0100 |
| commit | f70cea508cd30fa40770ea989fe2a19e715a357b (patch) | |
| tree | 731bb96b375dc8fd0f7e5a2a7e1d1fe5cb2a600e /tests/typ/compute | |
| parent | fe1f4400693690b68db5a7ec0976ba998624a740 (diff) | |
Remove index syntax in favor of accessor methods
Diffstat (limited to 'tests/typ/compute')
| -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 |
