mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
b7cca76ca2
This builds for the host system rather than for Serenity. We need to improve on it a *lot*, but at least it's a place to start.
20 lines
467 B
C++
20 lines
467 B
C++
#include <AK/AKString.h>
|
|
|
|
int main()
|
|
{
|
|
ASSERT(String().is_null());
|
|
ASSERT(String().is_empty());
|
|
|
|
ASSERT(!String("").is_null());
|
|
ASSERT(String("").is_empty());
|
|
|
|
String test_string = "ABCDEF";
|
|
ASSERT(!test_string.is_empty());
|
|
ASSERT(!test_string.is_null());
|
|
ASSERT(test_string.length() == 6);
|
|
ASSERT(test_string.length() == strlen(test_string.characters()));
|
|
ASSERT(!strcmp(test_string.characters(), "ABCDEF"));
|
|
|
|
return 0;
|
|
}
|