Pyth Test Functions


I have a few functions that I'm trying test through the use of a class and I can't figure out how to show that I've set them up correctly


my first function:

def f(x):
return 8 * x ** 2 + 3 * x

now if I wanted to test that, say with x=2 using self.assertEqual how would I set that up?

Any help is appreciated. Thanks:)


Hi @mbeaves,

You might want to change the title to "Python..." because unless I am missing something, Pyth is an esolang and so isn't related to Python in any manner except the name.

Which class? Did you create one yourself or used some built-in class? Could you share your whole code as well, thanks!