diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-05 01:42:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-05 01:42:42 +0900 |
| commit | 9ac63aac0cb025d1de195dbc57d0c89ebd1d7cc5 (patch) | |
| tree | 00e458c803c5346e08a0152662d672290af6a35d /hst/grp_pwd_test.go | |
| parent | cb9ebf0e1541c0e49380cda6d4c2d619a0e9933f (diff) | |
hst/grp_pwd: add extra test cases
Does not change coverage but this helps me crosscheck with my phone.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/grp_pwd_test.go')
| -rw-r--r-- | hst/grp_pwd_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hst/grp_pwd_test.go b/hst/grp_pwd_test.go index 2d01c122..c482f5fd 100644 --- a/hst/grp_pwd_test.go +++ b/hst/grp_pwd_test.go @@ -20,6 +20,9 @@ func TestUIDString(t *testing.T) { {hst.IsolatedStart + hst.IdentityStart, "u0_i0"}, // isolatedStart {(hst.RangeSize-1)*hst.UserOffset + hst.IsolatedEnd, "u9999_i9999"}, // isolatedEnd + {hst.ToUser[uint32](10, 127), "u10_a127"}, + {hst.ToUser[uint32](11, 127), "u11_a127"}, + {0, "0"}, // out of bounds } for _, tc := range testCases { |
