We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8fdc18 commit 5ed315eCopy full SHA for 5ed315e
utils_test.go
@@ -649,6 +649,17 @@ func TestAsUintRange(t *testing.T) {
649
}
650
651
652
+func TestAsUintMaxRange(t *testing.T) {
653
+ max := uint64(5)
654
+ src := 10
655
+ dest := asUint(src, 0, max)
656
+
657
+ if dest.(uint64) != max {
658
+ t.Errorf("dest [%d] != %d", dest, max)
659
+ }
660
661
+}
662
663
func TestAsBoolNil(t *testing.T) {
664
dest := asBool(nil)
665
0 commit comments