mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
First 0.7 update, removing all deprecated features.
This commit is contained in:
committed by
Christoffer Lerno
parent
cff6697818
commit
2a895ec7be
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user