-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows appending to a `string` without having to allocate a new string. This might perform better most of the time. Closes #1500.
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# @TEST-EXEC: ${HILTIC} -dj %INPUT | ||
|
||
module Foo { | ||
|
||
global x1 = "abc"; | ||
x1 = x1 + "123"; | ||
assert x1 == "abc123"; | ||
|
||
global x2 = "abc"; | ||
x2 += "123"; | ||
assert x2 == "abc123"; | ||
|
||
assert |"abc"| == 3; | ||
|
||
assert "abc" == "abc"; | ||
assert !( "abc" == "123" ); | ||
|
||
assert !( "abc" != "abc" ); | ||
assert "abc" != "123"; | ||
|
||
} |