I don't think you should eat something unless you know what it is.
However, just for reference, in an emergency/survival situation without any other tools or method of analysis, the stages for testing for edibility are:
1. look at it
2. smell it
3. cut it open and rub it on your skin
4. touch it to your tongue
5. eat a very small portion
6. gradually eat larger portions
Try each stage then wait to see if there's a bad reaction. If it's ok, then try the next stage, wait, etc...
It's very risky to do that, but if the choice is to starve or take a chance, I guess you take a chance.
But as I said, I don't think you should eat that thing unless you know for sure that it won't harm you.