Files
c3c/test/test_suite/compile_time/ct_string_functions.c3t
Zack Puhl eb8fb8871f Fix $$str_hash to use a5hash like String.hash() (#2403)
* Fix `$$str_hash` to use `a5hash` like `String.hash()`
2025-08-14 20:24:01 +02:00

11 lines
289 B
Plaintext

import std;
fn int main()
{
$assert(@str_upper("Hello World") == "HELLO WORLD");
$assert(@str_lower("Hello World") == "hello world");
$assert(@str_find("Hello World", "o") == 4);
$assert(@str_find("Hello World", "w") == -1);
$assert(@str_hash("Hello C3") == 2193775821);
return 0;
}