mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-21 02:59:36 -06:00
test: proper path sep for win
This commit is contained in:
parent
47be022596
commit
ffce2c3b94
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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"
|
||||
|
||||
2
packages/tree-sitter-zx/Cargo.toml
generated
2
packages/tree-sitter-zx/Cargo.toml
generated
@ -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"
|
||||
|
||||
2
packages/tree-sitter-zx/build.zig.zon
generated
2
packages/tree-sitter-zx/build.zig.zon
generated
@ -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",
|
||||
|
||||
2
packages/tree-sitter-zx/package.json
generated
2
packages/tree-sitter-zx/package.json
generated
@ -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",
|
||||
|
||||
@ -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": [
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user