test: proper path sep for win

This commit is contained in:
Nurul Huda (Apon) 2025-12-22 04:43:14 +06:00
parent 47be022596
commit ffce2c3b94
No known key found for this signature in database
GPG Key ID: 5D3F1DE2855A2F79
9 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
.{
.name = .zx,
.version = "0.1.0-dev.396",
.version = "0.1.0-dev.398",
.description = "ZX is a framework for building web applications with Zig.",
.repository = "https://github.com/nurulhudaapon/zx",
.fingerprint = 0xcad77a8d2a3389f2,

View File

@ -2,7 +2,7 @@
"name": "zx",
"displayName": "ZX",
"description": "ZX let's you write HTML within your Zig code.",
"version": "0.1.396",
"version": "0.1.398",
"publisher": "nurulhudaapon",
"icon": "images/zx-icon.png",
"private": true,

View File

@ -1,7 +1,7 @@
id = "zx"
name = "ZX"
description = "ZX support."
version = "0.1.0-dev.396"
version = "0.1.0-dev.398"
schema_version = 1
authors = ["Nurul Huda (Apon) <me@nurulhudaapon.com>"]
repository = "https://github.com/nurulhudaapon/zx"

View File

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-zx"
description = "ZX is a framework for building web applications with Zig."
version = "0.1.0-dev.396"
version = "0.1.0-dev.398"
authors = ["Nurul Huda (Apon) <me@nurulhudaapon.com>"]
license = "MIT"
readme = "README.md"

View File

@ -1,7 +1,7 @@
.{
.name = .tree_sitter_zx,
.fingerprint = 0xd3a91e4ba933ca89,
.version = "0.1.0-dev.396",
.version = "0.1.0-dev.398",
.dependencies = .{
.tree_sitter = .{
.url = "git+https://github.com/tree-sitter/zig-tree-sitter#a53dac49d66562006e84dd11211b7ae40db68263",

View File

@ -1,6 +1,6 @@
{
"name": "tree-sitter-zx",
"version": "0.1.0-dev.396",
"version": "0.1.0-dev.398",
"description": "ZX is a framework for building web applications with Zig.",
"repository": "https://github.com/nurulhudaapon/zx",
"license": "MIT",

View File

@ -14,7 +14,7 @@
}
],
"metadata": {
"version": "0.1.0-dev.396",
"version": "0.1.0-dev.398",
"license": "MIT",
"description": "ZX is a framework for building web applications with Zig.",
"authors": [

View File

@ -1,6 +1,6 @@
{
"name": "ziex",
"version": "0.1.0-dev.396",
"version": "0.1.0-dev.398",
"private": true,
"description": "ZX is a framework for building web applications with Zig.",
"main": "src/index.ts",

View File

@ -259,7 +259,7 @@ test "fmt" {
defer allocator.free(zx_bin_abs);
defer allocator.free(test_dir_abs);
var child = std.process.Child.init(&.{ zx_bin_abs, "fmt", "site/pages" }, allocator);
var child = std.process.Child.init(&.{ zx_bin_abs, "fmt", "site" ++ std.fs.path.sep_str ++ "pages" }, allocator);
child.cwd = test_dir_abs;
child.stdout_behavior = .Pipe;
child.stderr_behavior = .Pipe;
@ -274,8 +274,8 @@ test "fmt" {
// std.debug.print("stderr: {s}\n", .{stderr.items});
const expected_strings = [_][]const u8{
"site/pages/layout.zx",
"site/pages/page.zx",
"site" ++ std.fs.path.sep_str ++ "pages" ++ std.fs.path.sep_str ++ "layout.zx",
"site" ++ std.fs.path.sep_str ++ "pages" ++ std.fs.path.sep_str ++ "page.zx",
};
for (expected_strings) |expected_string| {