Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Broken tests? #118

Open
adrian-em opened this issue Jun 3, 2014 · 1 comment
Open

Broken tests? #118

adrian-em opened this issue Jun 3, 2014 · 1 comment

Comments

@adrian-em
Copy link
Contributor

TDD is something I have to take a deeper look, but the tests at least for python are broken. It failed because the test can't find the methods used, which is normal because they aren't imported.

python largest-continuous-sum.py
E
======================================================================
ERROR: test_largest_continuous_sum (__main__.LargestContinousSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "largest-continuous-sum.py", line 5, in test_largest_continuous_sum
    sum = largest_continuous_sum([1, 2, 3, 4])
NameError: global name 'largest_continuous_sum' is not defined

----------------------------------------------------------------------
Ran 1 test in 0.000s

As this is not a package, how we should accomplish this?

@blakeembrey
Copy link
Owner

@aesptux Not really sure, I don't know a lot about testing under Python. I'd love if someone can jump in and give this a shot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants