Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
UPdated testsuites inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanre Adelowo committed Aug 5, 2017
1 parent bc1425d commit b89a3f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ var _ = Describe("Utils", func() {
Entry("Converting Single digit Kilobyte", "1KB", int64(1024), false),
Entry("Converting kilobytes with a double digit number", "12KB", int64(12288), false),
Entry("Conversion should not work for 'K' but 'KB' alone", "1K", int64(-1), true),
Entry("Conversion should not work for KBB", "1KBB", int64(-1), true),
Entry("Converting a single digit Megabyte", "1MB", int64(1048576), false),
Entry("Converting a double digit Megabyte", "31MB", int64(32505856), false),
Entry("Conversion should not work for 'M' but 'MB' alone", "31M", int64(-1), true),
Entry("Converting bytes with a MBB", "1MBB", int64(10485676), true),
Entry("Converting a single digit Gigabyte", "1GB", int64(1073741824), false),
Entry("Converting a GBB", "1GBB", int64(-1), true),
Entry("Converting a double digit Gigabyte", "20GB", int64(21474836480), false),
Entry("Conversion should not work for 'G' but 'GB' alone", "1M", int64(-1), true),

Expand Down

0 comments on commit b89a3f0

Please sign in to comment.