mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
First 0.7 update, removing all deprecated features.
This commit is contained in:
committed by
Christoffer Lerno
parent
cff6697818
commit
2a895ec7be
@@ -24,11 +24,11 @@ fn void encode()
|
||||
foreach (t : tests)
|
||||
{
|
||||
n = hex::encode_bytes(t.dec, buf[..]);
|
||||
String want = ((String)t.enc).temp_ascii_to_lower();
|
||||
String want = ((String)t.enc).to_lower_tcopy();
|
||||
assert(want == buf[:n], "encode failed: got: %s, want: %s", buf[:n], want);
|
||||
@pool()
|
||||
{
|
||||
assert(want == hex::encode_temp(t.dec));
|
||||
assert(want == hex::tencode(t.dec));
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ fn void decode()
|
||||
assert(t.dec == buf[:n], "decode failed: got: %s, want: %s", buf[:n], t.dec);
|
||||
@pool()
|
||||
{
|
||||
assert(t.dec == hex::decode_temp(t.enc)!!);
|
||||
assert(t.dec == hex::tdecode(t.enc)!!);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user