Skip to content
Snippets Groups Projects
Commit 2eb1c502 authored by Mark Wheelhouse's avatar Mark Wheelhouse
Browse files

updated string tests to allow for optimised storage in the data segment

parent 573ec210
No related branches found
No related tags found
No related merge requests found
......@@ -2,18 +2,18 @@
# Output:
# s1 is Hi
# s2 is Hi
# s2 is Hello
# They are not the same string.
# Now make s1 = s2
# s1 is Hi
# s2 is Hi
# s1 is Hello
# s2 is Hello
# They are the same string.
# Program:
begin
string s1 = "Hi" ;
string s2 = "Hi" ;
string s2 = "Hello" ;
print "s1 is " ;
println s1 ;
print "s2 is " ;
......
......@@ -10,7 +10,7 @@
begin
string s1 = "Hello" ;
string s2 = "foo" ;
string s3 = "foo" ;
string s3 = "bar" ;
bool b = s1 == s1 ;
println b ;
println s1 == s2 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment