assert! Takes a boolean expression and an optional error message. The
`false` is being interpreted as an error message which results in the
Box<Any> output. You probably want to use assert_eq!

On Mon Nov 17 2014 at 8:31:46 AM Max R.D. Parmer <[email protected]> wrote:

> The code and error generated from the test suite are here:
> https://gist.github.com/maxrp/e8b17669d18006471434
>
> Where things get strange to me (is this a bug?) is how main() works as
> expected and the first test passes but the second test fails with this
> odd "panicked at 'Box<Any>'" -- I'm not sure where the Box occurs --
> possibly libtest?
>
> I'm using the latest nightlies:
> rustc --version && cargo --version
>     rustc 0.13.0-nightly (d91a015ab 2014-11-14 23:37:27 +0000)
>     cargo 0.0.1-pre-nightly (56852db 2014-11-14 23:33:33 +0000)
>
> Secondary to the specific issue, any remarks on style and idiom are also
> welcome.
>
> Thanks,
> Max
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to