mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Implement === and !== string comparison operators (#1832)
This commit is contained in:
7
test/asm/string-compare.asm
Normal file
7
test/asm/string-compare.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
assert "hello" === "hello"
|
||||
assert "hello" !== "goodbye"
|
||||
assert "game" ++ "boy" === "gameboy"
|
||||
assert "fire flower" === "fire" ++ " " ++ "flower"
|
||||
assert "a" === "b" == 0
|
||||
assert 1 == "a" !== "b"
|
||||
assert 1 + 2 * 3 ** "x" !== "y" == 7
|
||||
Reference in New Issue
Block a user