aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2021-11-17 15:52:27 -0800
committerRon Evans <[email protected]>2021-11-18 11:07:45 +0100
commit3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09 (patch)
tree1155cb7ce98dc030dac5d327f67bd01a8bd87b8c
parent0e7a129de7ba68489c99577c09777921926191bb (diff)
downloadtinygo-3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09.tar.gz
tinygo-3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09.zip
testdata: update binop.go for string comparison tests
-rw-r--r--testdata/binop.go7
-rw-r--r--testdata/binop.txt5
2 files changed, 12 insertions, 0 deletions
diff --git a/testdata/binop.go b/testdata/binop.go
index 8b6fa0f7c..9f85976a7 100644
--- a/testdata/binop.go
+++ b/testdata/binop.go
@@ -24,6 +24,13 @@ func main() {
println("ab" < "aa")
println("aa" < "ab")
+ h := "hello"
+ println("h < h", h < h)
+ println("h <= h", h <= h)
+ println("h == h", h == h)
+ println("h >= h", h >= h)
+ println("h > h", h > h)
+
println("array equality")
println(a1 == [2]int{1, 2})
println(a1 != [2]int{1, 2})
diff --git a/testdata/binop.txt b/testdata/binop.txt
index 269731abc..1599ff0f2 100644
--- a/testdata/binop.txt
+++ b/testdata/binop.txt
@@ -20,6 +20,11 @@ true
false
false
true
+h < h false
+h <= h true
+h == h true
+h >= h true
+h > h false
array equality
true
false