saqut-compiler/tests/golden/string/equality.sqt

17 lines
373 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Regresyon testi: string == ve != çalışmaya devam etmeli.
// TypeChecker string sıralama operatörlerini bloklamasına rağmen
// eşitlik operatörleri string ile kullanılabilmeli.
int main() {
string a = "merhaba";
string b = "merhaba";
string c = "dunya";
print(a == b);
print(a == c);
print(a != c);
print(b != b);
return 0;
}