Skip to content

Commit

Permalink
fix(ci): fix std.fs.Path.extension() tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Nov 15, 2023
1 parent 9fa0ec0 commit c249d89
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/std/tests/fs_test.ri
Original file line number Diff line number Diff line change
Expand Up @@ -96,43 +96,43 @@ test "std.fs.Path.file_name()" {
test "std.fs.Path.extension()" {
@assert(Path.extension("") == "");
@assert(Path.extension(".") == "");
@assert(Path.extension("a.") == ".");
@assert(Path.extension("abc.") == ".");
@assert(Path.extension("a.") == "");
@assert(Path.extension("abc.") == "");
@assert(Path.extension(".a") == "");
@assert(Path.extension(".file") == "");
@assert(Path.extension(".gitignore") == "");
@assert(Path.extension(".image.png") == ".png");
@assert(Path.extension("file.ext") == ".ext");
@assert(Path.extension("file.ext.") == ".");
@assert(Path.extension("file.ext.") == "");
@assert(Path.extension("very-long-file.bruh") == ".bruh");
@assert(Path.extension("a.b.c") == ".c");
@assert(Path.extension("a.b.c/") == ".c");

@assert(Path.extension("/") == "");
@assert(Path.extension("/.") == "");
@assert(Path.extension("/a.") == ".");
@assert(Path.extension("/abc.") == ".");
@assert(Path.extension("/a.") == "");
@assert(Path.extension("/abc.") == "");
@assert(Path.extension("/.a") == "");
@assert(Path.extension("/.file") == "");
@assert(Path.extension("/.gitignore") == "");
@assert(Path.extension("/file.ext") == ".ext");
@assert(Path.extension("/file.ext.") == ".");
@assert(Path.extension("/file.ext.") == "");
@assert(Path.extension("/very-long-file.bruh") == ".bruh");
@assert(Path.extension("/a.b.c") == ".c");
@assert(Path.extension("/a.b.c/") == ".c");
@assert(Path.extension("/a.b.c") == "");
@assert(Path.extension("/a.b.c/") == "");

@assert(Path.extension("/foo/bar/bam/") == "");
@assert(Path.extension("/foo/bar/bam/.") == "");
@assert(Path.extension("/foo/bar/bam/a.") == ".");
@assert(Path.extension("/foo/bar/bam/abc.") == ".");
@assert(Path.extension("/foo/bar/bam/a.") == "");
@assert(Path.extension("/foo/bar/bam/abc.") == "");
@assert(Path.extension("/foo/bar/bam/.a") == "");
@assert(Path.extension("/foo/bar/bam/.file") == "");
@assert(Path.extension("/foo/bar/bam/.gitignore") == "");
@assert(Path.extension("/foo/bar/bam/file.ext") == ".ext");
@assert(Path.extension("/foo/bar/bam/file.ext.") == ".");
@assert(Path.extension("/foo/bar/bam/file.ext.") == "");
@assert(Path.extension("/foo/bar/bam/very-long-file.bruh") == ".bruh");
@assert(Path.extension("/foo/bar/bam/a.b.c") == ".c");
@assert(Path.extension("/foo/bar/bam/a.b.c/") == ".c");
@assert(Path.extension("/foo/bar/bam/a.b.c/") == "");
}

test "std.fs.Path.relative()" {
Expand Down

0 comments on commit c249d89

Please sign in to comment.