From 2eb1c502fe53c72cf4215541872bb3d08028f185 Mon Sep 17 00:00:00 2001
From: Mark Laptop <mark.wheelhouse@imperial.ac.uk>
Date: Thu, 27 Feb 2020 11:22:55 +0000
Subject: [PATCH] updated string tests to allow for optimised storage in the
 data segment

---
 valid/IO/print/multipleStringsAssignment.wacc | 8 ++++----
 valid/expressions/stringEqualsExpr.wacc       | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/valid/IO/print/multipleStringsAssignment.wacc b/valid/IO/print/multipleStringsAssignment.wacc
index a0eacc0..347c4c8 100644
--- a/valid/IO/print/multipleStringsAssignment.wacc
+++ b/valid/IO/print/multipleStringsAssignment.wacc
@@ -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 " ;
diff --git a/valid/expressions/stringEqualsExpr.wacc b/valid/expressions/stringEqualsExpr.wacc
index 08fb401..fbc6fc1 100644
--- a/valid/expressions/stringEqualsExpr.wacc
+++ b/valid/expressions/stringEqualsExpr.wacc
@@ -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 ;
-- 
GitLab