good morning!!!!

Skip to content
Snippets Groups Projects
Commit bfd1fe97 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Update test style to checker

parent d9ccbf04
Branches
Tags
No related merge requests found
...@@ -17,19 +17,7 @@ func (s *SizeSuite) TestStorageSizeString(c *checker.C) { ...@@ -17,19 +17,7 @@ func (s *SizeSuite) TestStorageSizeString(c *checker.C) {
exp2 := "2.19 kB" exp2 := "2.19 kB"
exp3 := "12.00 B" exp3 := "12.00 B"
res1 := StorageSize(data1).String() c.Assert(StorageSize(data1).String(), checker.Equals, exp1)
res2 := StorageSize(data2).String() c.Assert(StorageSize(data2).String(), checker.Equals, exp2)
res3 := StorageSize(data3).String() c.Assert(StorageSize(data3).String(), checker.Equals, exp3)
if res1 != exp1 {
t.Errorf("Expected %s got %s", exp1, res1)
}
if res2 != exp2 {
t.Errorf("Expected %s got %s", exp2, res2)
}
if res3 != exp3 {
t.Errorf("Expected %s got %s", exp3, res3)
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment