- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLess (0.14 sec)
-
src/cmp/cmp_test.go
{negzero, negzero, 0}, {negzero, 0.0, 0}, {0.0, negzero, 0}, {negzero, 1.0, -1}, {negzero, -1.0, +1}, {nilptr, nonnilptr, -1}, {nonnilptr, nilptr, 1}, {nonnilptr, nonnilptr, 0}, } func TestLess(t *testing.T) { for _, test := range tests { var b bool switch test.x.(type) { case int: b = cmp.Less(test.x.(int), test.y.(int)) case string: b = cmp.Less(test.x.(string), test.y.(string))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0)