Skip to content

Commit 3ba8bc9

Browse files
dgryskideadprogram
authored andcommitted
testdata: update binop.go for string comparison tests
1 parent 0e7a129 commit 3ba8bc9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

testdata/binop.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ func main() {
2424
println("ab" < "aa")
2525
println("aa" < "ab")
2626

27+
h := "hello"
28+
println("h < h", h < h)
29+
println("h <= h", h <= h)
30+
println("h == h", h == h)
31+
println("h >= h", h >= h)
32+
println("h > h", h > h)
33+
2734
println("array equality")
2835
println(a1 == [2]int{1, 2})
2936
println(a1 != [2]int{1, 2})

testdata/binop.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ true
2020
false
2121
false
2222
true
23+
h < h false
24+
h <= h true
25+
h == h true
26+
h >= h true
27+
h > h false
2328
array equality
2429
true
2530
false

0 commit comments

Comments
 (0)