mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
fetch: fix failing test
Prior to
[this](ef9966c985 (diff-08c935ef8c633bb630641d44230597f1cff5afb0e736d451e2ba5569fa53d915R805)
)
commit tar was not a valid extension. After that this one is valid case.
This commit is contained in:
parent
b88ae8dbd8
commit
bc5076715b
@ -867,9 +867,9 @@ const FileType = enum {
|
||||
try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("ATTACHMENT; filename=\"stuff.tar.xz\""));
|
||||
try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("attachment; FileName=\"stuff.tar.xz\""));
|
||||
try std.testing.expectEqual(@as(?FileType, .@"tar.gz"), fromContentDisposition("attachment; FileName*=UTF-8\'\'xyz%2Fstuff.tar.gz"));
|
||||
try std.testing.expectEqual(@as(?FileType, .tar), fromContentDisposition("attachment; FileName=\"stuff.tar\""));
|
||||
|
||||
try std.testing.expect(fromContentDisposition("attachment FileName=\"stuff.tar.gz\"") == null);
|
||||
try std.testing.expect(fromContentDisposition("attachment; FileName=\"stuff.tar\"") == null);
|
||||
try std.testing.expect(fromContentDisposition("attachment; FileName\"stuff.gz\"") == null);
|
||||
try std.testing.expect(fromContentDisposition("attachment; size=42") == null);
|
||||
try std.testing.expect(fromContentDisposition("inline; size=42") == null);
|
||||
|
Loading…
Reference in New Issue
Block a user