~rogpeppe/juju-core/387-use-testing-set

« back to all changes in this revision

Viewing changes to testing/checkers/set_test.go

  • Committer: Roger Peppe
  • Date: 2013-09-11 10:40:14 UTC
  • mfrom: (1777.1.4 386-testing-set-reset)
  • Revision ID: roger.peppe@canonical.com-20130911104014-z1s3u9fj2d76mli2
mergeĀ 386-testing-set-reset

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        restore()
47
47
        c.Assert(m, gc.DeepEquals, oldMap)
48
48
}
 
49
 
 
50
func (*SetSuite) TestSetPanicsWhenNotAssignable(c *gc.C) {
 
51
        i := 99
 
52
        type otherInt int
 
53
        c.Assert(func() { jc.Set(&i, otherInt(88)) }, gc.PanicMatches, `reflect\.Set: value of type checkers_test\.otherInt is not assignable to type int`)
 
54
}