github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/comp3.gno (about) 1 package main 2 3 func main() { 4 // test against uninitialized value: https://github.com/gnolang/gno/pull/1132 5 var x string 6 y := "Hello" 7 results := [...]bool{ 8 x < y, 9 x <= y, 10 x >= y, 11 x > y, 12 13 x == y, 14 x == "", 15 y == "", 16 } 17 println(results) 18 } 19 20 // Output: 21 // array[(true bool),(true bool),(false bool),(false bool),(false bool),(true bool),(false bool)]