From 3ba8bc92cdb16a5e9562fa06fcaf875eeae54e09 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Wed, 17 Nov 2021 15:52:27 -0800 Subject: [PATCH] testdata: update binop.go for string comparison tests --- testdata/binop.go | 7 +++++++ testdata/binop.txt | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/testdata/binop.go b/testdata/binop.go index 8b6fa0f7..9f85976a 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 269731ab..1599ff0f 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