Skip to content

Commit f4cec54

Browse files
authored
Merge branch 'main' into add-excel-module-tests-6288985731523853614
2 parents 67882d3 + 777426b commit f4cec54

6 files changed

Lines changed: 25 additions & 13 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v7
2424
with:
2525
python-version: '3.10'
2626

‎.github/workflows/graphify.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v7
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
cache: 'pip'

‎.github/workflows/pypi-publish.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v5
19+
uses: actions/setup-python@v7
2020
with:
2121
python-version: "3.12"
2222

@@ -64,7 +64,7 @@ jobs:
6464
- uses: actions/checkout@v4
6565

6666
- name: Set up Python ${{ matrix.python-version }}
67-
uses: actions/setup-python@v5
67+
uses: actions/setup-python@v7
6868
with:
6969
python-version: ${{ matrix.python-version }}
7070

‎cli/src/commands/migrate.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ fn replace_call(source: &str, prefix: &str, keyword: &str) -> String {
263263
remaining = &remaining[pos + full.len()..];
264264
if let Some(close) = remaining.find(')') {
265265
let args = &remaining[..close];
266-
result.push_str(&format!("{keyword} {args}"));
266+
result.push_str(keyword);
267+
result.push(' ');
268+
result.push_str(args);
267269
remaining = &remaining[close + 1..];
268270
} else {
269271
result.push_str(remaining);

‎stdlib/src/svg.rs‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,20 @@ impl StdlibRegistry {
1919
);
2020
}
2121
}
22+
23+
#[cfg(test)]
24+
mod tests {
25+
use super::*;
26+
27+
#[test]
28+
fn test_register_svg() {
29+
let mut registry = StdlibRegistry::default();
30+
registry.register_svg();
31+
32+
let module = registry.get_module("std.svg").unwrap();
33+
assert_eq!(module.name, "std.svg");
34+
assert_eq!(module.version, "1.0.0");
35+
assert!(module.exports.is_empty());
36+
assert!(module.required_capabilities.is_empty());
37+
}
38+
}

‎stdlib/tests/stdlib_tests.rs‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,12 +1153,5 @@ fn test_ai_generate_text() {
11531153
}
11541154

11551155
#[test]
1156-
fn test_excel_module() {
1157-
let registry = StdlibRegistry::new();
1158-
let excel = registry.get_module("std.excel").unwrap();
1159-
1160-
assert_eq!(excel.name, "std.excel");
1161-
assert_eq!(excel.version, "1.0.0");
1162-
assert!(excel.required_capabilities.is_empty());
1163-
assert!(excel.exports.is_empty());
1156+
<<
11641157
}

0 commit comments

Comments
 (0)