Skip to content

Commit

Permalink
properly fix mem test
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvinnix committed Oct 18, 2023
1 parent dacc057 commit 99f201f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object_goslice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func TestGoSliceMemUsage(t *testing.T) {
// default + default since we don't account for objectGoSlice in (*Object).MemUsage
expectedMem: SizeEmptyStruct + SizeEmptyStruct,
// overhead + (value + len("length") with string overhead + "length".value + prototype + ints)
expectedNewMem: SizeEmptyStruct + (SizeEmptyStruct + (6 + SizeString) + SizeEmptyStruct + (SizeEmptyStruct + SizeEmptyStruct) + SizeNumber),
expectedNewMem: SizeEmptyStruct + (SizeEmptyStruct + (6 + SizeString) + SizeEmptyStruct + SizeEmptyStruct + SizeNumber*2),
errExpected: nil,
},
{
Expand All @@ -377,7 +377,7 @@ func TestGoSliceMemUsage(t *testing.T) {
// default + default since we don't account for objectGoSlice in (*Object).MemUsage
expectedMem: SizeEmptyStruct + SizeEmptyStruct,
// overhead + (value + len("length") with string overhead + "length".value + prototype + ints)
expectedNewMem: SizeEmptyStruct + (SizeEmptyStruct + (6 + SizeString) + SizeEmptyStruct + (SizeEmptyStruct + SizeEmptyStruct) + SizeNumber),
expectedNewMem: SizeEmptyStruct + (SizeEmptyStruct + (6 + SizeString) + SizeEmptyStruct + SizeEmptyStruct + SizeNumber*2),
errExpected: nil,
},
}
Expand Down

0 comments on commit 99f201f

Please sign in to comment.