authorgravatar for igor.anic@gmail.comIgor Anić <igor.anic@gmail.com> 2024-02-26 00:26:38+01:00
committergravatar for igor.anic@gmail.comIgor Anić <igor.anic@gmail.com> 2024-04-03 17:06:20+02:00
logbc5076715be066540b0b61a5599404f45bfa6d5f
tree0c12b8d7284c7e204b324364376e72cccfe324c8
parentb88ae8dbd84886d3b9b26509034720f755a0e28a

fetch: fix failing test

Prior to [this](https://github.com/ziglang/zig/commit/ef9966c9855dd855afda767f212abec6e5a36307#diff-08c935ef8c633bb630641d44230597f1cff5afb0e736d451e2ba5569fa53d915R805) commit tar was not a valid extension. After that this one is valid case.

1 files changed, 1 insertions(+), 1 deletions(-)

src/Package/Fetch.zig+1-1
...@@ -867,9 +867,9 @@ const FileType = enum {...@@ -867,9 +867,9 @@ const FileType = enum {
867 try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("ATTACHMENT; filename=\"stuff.tar.xz\""));867 try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("ATTACHMENT; filename=\"stuff.tar.xz\""));
868 try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("attachment; FileName=\"stuff.tar.xz\""));868 try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("attachment; FileName=\"stuff.tar.xz\""));
869 try std.testing.expectEqual(@as(?FileType, .@"tar.gz"), fromContentDisposition("attachment; FileName*=UTF-8\'\'xyz%2Fstuff.tar.gz"));869 try std.testing.expectEqual(@as(?FileType, .@"tar.gz"), fromContentDisposition("attachment; FileName*=UTF-8\'\'xyz%2Fstuff.tar.gz"));
870 try std.testing.expectEqual(@as(?FileType, .tar), fromContentDisposition("attachment; FileName=\"stuff.tar\""));
870871
871 try std.testing.expect(fromContentDisposition("attachment FileName=\"stuff.tar.gz\"") == null);872 try std.testing.expect(fromContentDisposition("attachment FileName=\"stuff.tar.gz\"") == null);
872 try std.testing.expect(fromContentDisposition("attachment; FileName=\"stuff.tar\"") == null);
873 try std.testing.expect(fromContentDisposition("attachment; FileName\"stuff.gz\"") == null);873 try std.testing.expect(fromContentDisposition("attachment; FileName\"stuff.gz\"") == null);
874 try std.testing.expect(fromContentDisposition("attachment; size=42") == null);874 try std.testing.expect(fromContentDisposition("attachment; size=42") == null);
875 try std.testing.expect(fromContentDisposition("inline; size=42") == null);875 try std.testing.expect(fromContentDisposition("inline; size=42") == null);