Skip to content

Commit

Permalink
cue: print hex numbers correctly
Browse files Browse the repository at this point in the history
Change-Id: I26c023565fbfce982e14e75dda6d7159ea6c0700
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6461
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
mpvl committed Jul 3, 2020
1 parent 10fbc21 commit 8f07f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cue/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ func TestValueType(t *testing.T) {
inst := getInstance(t, tc.value)
v := inst.Lookup("v")
if got := v.Kind(); got != tc.kind {
t.Errorf("Kind: got %x; want %x", got, tc.kind)
t.Errorf("Kind: got %x; want %x", int(got), int(tc.kind))
}
want := tc.incompleteKind | BottomKind
if got := v.IncompleteKind(); got != want {
t.Errorf("IncompleteKind: got %x; want %x", got, want)
t.Errorf("IncompleteKind: got %x; want %x", int(got), int(want))
}
if got := v.IsConcrete(); got != tc.concrete {
t.Errorf("IsConcrete: got %v; want %v", got, tc.concrete)
Expand Down

0 comments on commit 8f07f84

Please sign in to comment.