Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,17 @@
|
||||
// vtest build: !msvc-windows && !sanitize-address-gcc && !sanitize-address-clang
|
||||
// vtest vflags: -autofree
|
||||
module time
|
||||
|
||||
fn test_parse_format_regression_21369_autofree() {
|
||||
for _ in 0 .. 1000 {
|
||||
t := parse_format('04 Oct 2023', 'DD MMM YYYY') or {
|
||||
panic('parse_format should succeed under -autofree')
|
||||
}
|
||||
assert t.year == 2023
|
||||
assert t.month == 10
|
||||
assert t.day == 4
|
||||
assert t.hour == 0
|
||||
assert t.minute == 0
|
||||
assert t.second == 0
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user