mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
- Deprecate String.is_zstr and String.quick_zstr #2188.
This commit is contained in:
@@ -30,19 +30,6 @@ fn void test_count()
|
||||
assert(s2.count(" ") == 0);
|
||||
}
|
||||
|
||||
fn void quick_zstr()
|
||||
{
|
||||
String str = "1234";
|
||||
ZString a = str.quick_zstr();
|
||||
ZString b = str[0..2].quick_zstr();
|
||||
ZString c = str[1..].quick_zstr();
|
||||
String empty = {};
|
||||
ZString d = empty.quick_zstr();
|
||||
assert((void*)a == str.ptr);
|
||||
assert((void*)b != str.ptr);
|
||||
assert((void*)c == &str[1]);
|
||||
assert(d[0] == 0);
|
||||
}
|
||||
|
||||
fn void test_print_null()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user