-
-
Notifications
You must be signed in to change notification settings - Fork 365
Add Triangle Test Generator #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can take this one. Should the |
Thanks for taking a look @bmeverett! The project should build as soon as you add |
Thats no good. Can you provide some more information about the error that you're getting? |
Here is the stack trace of the error I'm getting
|
So this is the code I have for Traingle.cs (added it to Generators/Exercises/Triangle.cs), I didn't change anything else. using System;
using System.Collections.Generic;
using System.Text;
namespace Generators.Exercises
{
public class Triangle : Exercise
{
}
} If this matches what you have and still errors, could you push the branch that gives you this error? I'll be able to check it out and debug locally. |
Pushed to https://github.com/bmeverett/csharp/tree/423-triangle-generator and I copied and pasted what you had and it still errors |
Awesome thanks! It looks like your branch is a little behind. We made some changes to the generator framework recently, so you'll want to pull those in. I checked out your branch and was able to reproduce the issue. After merging in master, everything worked. |
Thank you! That did it! |
So I think the triangle data is throwing me off. Property- equilateral this isn't a property of the class, I get that it's supposed to be I guess I would think the property should be Kind and then the expected value should be one of the eunm values? Let me know if this makes sense or I'm totally missing something. |
@bmeverett Great observation. What I think we should do is to modify our stub and example implementation to drop the enum and simplify add three boolean tests: By the way, as the canonical data descriptions are overlapping, you'll need to use the full description path as the test method name (to make the method names unique). This is possible since the merge of this commit, so I would recommend rebasing to the latest master if that commit is not in your history. Once it is, you can set the |
This issue is part of an overall initiative to complete #195.
The documentation on how to add generators can be found here. If you get stuck or have any questions about adding this generator, please do not hesitate to reach out!
The text was updated successfully, but these errors were encountered: