summaryrefslogtreecommitdiff
path: root/tests/suite/loading
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-02-04 10:38:31 +0100
committerGitHub <noreply@github.com>2025-02-04 09:38:31 +0000
commit50ccd7d60f078f3617bfed5c4e8e1fd7d45ec340 (patch)
tree22c12abf76d2b2c20b49b569167ddf60fbe5b348 /tests/suite/loading
parent5b3593e571826ae44a3aeb0e0f6f09face7291ac (diff)
Scope deprecations (#5798)
Diffstat (limited to 'tests/suite/loading')
-rw-r--r--tests/suite/loading/cbor.typ3
-rw-r--r--tests/suite/loading/csv.typ4
-rw-r--r--tests/suite/loading/json.typ4
-rw-r--r--tests/suite/loading/toml.typ4
-rw-r--r--tests/suite/loading/xml.typ4
-rw-r--r--tests/suite/loading/yaml.typ4
6 files changed, 23 insertions, 0 deletions
diff --git a/tests/suite/loading/cbor.typ b/tests/suite/loading/cbor.typ
new file mode 100644
index 00000000..4b50bb9c
--- /dev/null
+++ b/tests/suite/loading/cbor.typ
@@ -0,0 +1,3 @@
+--- cbor-decode-deprecated ---
+// Warning: 15-21 `cbor.decode` is deprecated, directly pass bytes to `cbor` instead
+#let _ = cbor.decode
diff --git a/tests/suite/loading/csv.typ b/tests/suite/loading/csv.typ
index 93545fc4..6f57ec45 100644
--- a/tests/suite/loading/csv.typ
+++ b/tests/suite/loading/csv.typ
@@ -29,3 +29,7 @@
--- csv-invalid-delimiter ---
// Error: 41-51 delimiter must be an ASCII character
#csv("/assets/data/zoo.csv", delimiter: "\u{2008}")
+
+--- csv-decode-deprecated ---
+// Warning: 14-20 `csv.decode` is deprecated, directly pass bytes to `csv` instead
+#let _ = csv.decode
diff --git a/tests/suite/loading/json.typ b/tests/suite/loading/json.typ
index 3ebeaf2f..c8df1ff6 100644
--- a/tests/suite/loading/json.typ
+++ b/tests/suite/loading/json.typ
@@ -9,6 +9,10 @@
// Error: 7-30 failed to parse JSON (expected value at line 3 column 14)
#json("/assets/data/bad.json")
+--- json-decode-deprecated ---
+// Warning: 15-21 `json.decode` is deprecated, directly pass bytes to `json` instead
+#let _ = json.decode
+
--- issue-3363-json-large-number ---
// Big numbers (larger than what i64 can store) should just lose some precision
// but not overflow
diff --git a/tests/suite/loading/toml.typ b/tests/suite/loading/toml.typ
index 855ca995..a4318a01 100644
--- a/tests/suite/loading/toml.typ
+++ b/tests/suite/loading/toml.typ
@@ -39,3 +39,7 @@
--- toml-invalid ---
// Error: 7-30 failed to parse TOML (expected `.`, `=` at line 1 column 16)
#toml("/assets/data/bad.toml")
+
+--- toml-decode-deprecated ---
+// Warning: 15-21 `toml.decode` is deprecated, directly pass bytes to `toml` instead
+#let _ = toml.decode
diff --git a/tests/suite/loading/xml.typ b/tests/suite/loading/xml.typ
index 41cd20e7..933f3c48 100644
--- a/tests/suite/loading/xml.typ
+++ b/tests/suite/loading/xml.typ
@@ -26,3 +26,7 @@
--- xml-invalid ---
// Error: 6-28 failed to parse XML (found closing tag 'data' instead of 'hello' in line 3)
#xml("/assets/data/bad.xml")
+
+--- xml-decode-deprecated ---
+// Warning: 14-20 `xml.decode` is deprecated, directly pass bytes to `xml` instead
+#let _ = xml.decode
diff --git a/tests/suite/loading/yaml.typ b/tests/suite/loading/yaml.typ
index bbfea41c..a8089052 100644
--- a/tests/suite/loading/yaml.typ
+++ b/tests/suite/loading/yaml.typ
@@ -15,3 +15,7 @@
--- yaml-invalid ---
// Error: 7-30 failed to parse YAML (did not find expected ',' or ']' at line 2 column 1, while parsing a flow sequence at line 1 column 18)
#yaml("/assets/data/bad.yaml")
+
+--- yaml-decode-deprecated ---
+// Warning: 15-21 `yaml.decode` is deprecated, directly pass bytes to `yaml` instead
+#let _ = yaml.decode