diff options
author | Damian Gryski <[email protected]> | 2021-11-17 15:52:27 -0800 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-11-18 11:07:45 +0100 |
commit | 3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09 (patch) | |
tree | 1155cb7ce98dc030dac5d327f67bd01a8bd87b8c | |
parent | 0e7a129de7ba68489c99577c09777921926191bb (diff) | |
download | tinygo-3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09.tar.gz tinygo-3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09.zip |
testdata: update binop.go for string comparison tests
-rw-r--r-- | testdata/binop.go | 7 | ||||
-rw-r--r-- | testdata/binop.txt | 5 |
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 |