mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Support untyped second argument for operator overloading.
- Distinct versions of builtin types ignore @operator overloads #2204. - @operator macro using untyped parameter causes compiler segfault #2200. - Add comparison with `==` for ZString types.
This commit is contained in:
@@ -190,6 +190,14 @@ fn void test_treplace()
|
||||
assert(test.treplace("Never", "Always") == "Befriend some dragons?");
|
||||
}
|
||||
|
||||
fn void test_zstring()
|
||||
{
|
||||
String test = "hello";
|
||||
ZString test2 = "hello";
|
||||
ZString test3 = "bye";
|
||||
assert(test.zstr_tcopy() == test2);
|
||||
assert(test.zstr_tcopy() != test3);
|
||||
}
|
||||
fn void test_replace()
|
||||
{
|
||||
String test = "Befriend some dragons?";
|
||||
|
||||
Reference in New Issue
Block a user