Skip to content

Conversation

ThomasR
Copy link
Contributor

@ThomasR ThomasR commented Feb 27, 2016

No description provided.


describe 'generateNextName:', ->
it 'generates names', ->
#XXX not valid identifiers - should we disallow these input values by throwing an error?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, do not disallow them, but it should be undefined behaviour, so remove the next 4 tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, the implementation relies on generateNextName('9') === 'a'

name = '9';

tip = '9';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an implementation detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants