Skip to content

Generating tests for "all-your-base" exercise #473

Closed
@tommyschaefer

Description

@tommyschaefer

Hi there!

I've been working on adding a test generator for the all-your-base exercise for exercism/xruby and I've run into a bit of a snag.

Everything works perfectly until I get to the last 13 (if I counted correctly) exercises that are left undefined. As far as I'm able to tell, and I certainly could be missing something, these tests aren't easy (possible?) to generate from individual tracks. Is that correct?

If so, I'm wondering if theres a way that we could add more information to the canonical-data so that different tracks could generate their tests based on the following (from the data documentation):

It's up to each track do decide:

1. What's the canonical representation of zero?
    - []?
    - [0]?

2. What representations of zero are allowed?
     - []?
     - [0]?
     - [0,0]?

3. Are leading zeroes allowed?

4. How should invalid input be handled?

Though, I'm really not to sure how that would work...

Have any other tracks successfully implemented a test generator for all-your-base? I looked through a couple of the other language repositories, but I wasn't able to find anything.

Thank you so much for your time!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions