First 0.7 update, removing all deprecated features.

This commit is contained in:
Christoffer Lerno
2025-02-27 14:16:36 +01:00
committed by Christoffer Lerno
parent cff6697818
commit 2a895ec7be
1589 changed files with 2635 additions and 115363 deletions

View File

@@ -2,8 +2,8 @@ module timeformat_test @test;
import std::time::datetime, std::collections::list, std::collections::triple;
def FormatTzTestSpec = Triple(<TzDateTime, DateTimeFormat, String>);
def FormatTestSpec = Triple(<DateTime, DateTimeFormat, String>);
def FormatTzTestSpec = Triple{TzDateTime, DateTimeFormat, String};
def FormatTestSpec = Triple{DateTime, DateTimeFormat, String};
fn void test_with_tz()
{
@@ -27,7 +27,7 @@ fn void test_with_tz()
foreach (test : tests)
{
String candidate = test.first.new_format(test.second);
String candidate = test.first.format(mem, test.second);
defer free(candidate);
assert(candidate == test.third, "got: '%s', expected: '%s'", candidate, test.third);
}
@@ -44,7 +44,7 @@ fn void test_without_tz()
foreach (test : tests)
{
String candidate = test.first.new_format(test.second);
String candidate = test.first.format(mem, test.second);
defer free(candidate);
assert(candidate == test.third, "got: '%s', expected: '%s'", candidate, test.third);
}