Commit Graph

12 Commits

Author SHA1 Message Date
Dave Collins 3ad8c5b5ee Add tests for sub-interfaces. 2013-01-20 15:27:57 -06:00
Dave Collins 89496a6569 Add tests for types with custom Error interface. 2013-01-20 13:41:53 -06:00
Dave Collins 57a610269f Abstract common test types and functions. 2013-01-20 13:31:01 -06:00
Dave Collins ad1d81b355 Add tests for custom type that panics in Stringer. 2013-01-20 12:31:42 -06:00
Dave Collins 5c8d842977 Add tests for maps with multiple entries.
Previously, the tests did not include maps with more than a single entry
since the iteration order is randomized and the tests only accepted a
single valid expected value.  This commit modifies the tests to accept
multiple valid expected values and adds tests for a multi-entry map to
both Dump and Formatter.
2013-01-20 12:02:36 -06:00
Dave Collins e48df78db8 Update test summaries. 2013-01-17 21:40:54 -06:00
Dave Collins 9df67c91eb Add dump tests for interface arrays and slices. 2013-01-17 21:35:19 -06:00
Dave Collins c5fba05307 Fix a comment and a apply few gofmt changes. 2013-01-16 23:30:06 -06:00
Dave Collins 73b25df0f5 Namespace dump tests. 2013-01-14 08:53:38 -06:00
Dave Collins e892c84d38 Add tests for non-interface nil pointers.
These tests are a slight adaptation of tests provided by
kortschak@ in issue #4.  Credits go to him.
2013-01-12 23:36:46 -06:00
Dave Collins a2ceabae67 Minor code cleanup in dump_test.go. 2013-01-12 23:24:56 -06:00
Dave Collins 1a599b7b25 Initial implementation. 2013-01-08 23:38:16 -06:00