Skip to content

[Rework]: Add swift 5.8 and new features #43

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

Merged
merged 17 commits into from
Jun 9, 2023

Conversation

meatball133
Copy link
Member

No description provided.

@meatball133 meatball133 requested a review from a team as a code owner June 7, 2023 13:36
"name" : "testAdd",
"output" : "yabba",
"status" : "fail",
"task_id" : 1,
Copy link
Member

Choose a reason for hiding this comment

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

It looks like all exercises now have a task_id, which is not how we envisioned it. Couldn't you have a contention where the class needs to start with Task or Task1 or something, to distinguish between concept exercise tests and practice exercise tests?

Copy link
Member Author

@meatball133 meatball133 Jun 8, 2023

Choose a reason for hiding this comment

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

I have thought that I may compare the first and the last test and if they have the same task id I remove them? Since even if there is a concept with only 1 task it still aint that useful.

Otherwise checking class name is also an option

Copy link
Member

Choose a reason for hiding this comment

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

I have thought that I may compare the first and the last test and if they have the same task id I remove them? Since even if there is a concept with only 1 task it still aint that useful.

Well, it does change how the UI is rendered, so I'd like it to be there even then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well I can make it check class name

@ErikSchierboom
Copy link
Member

ErikSchierboom commented Jun 8, 2023

I'm having a slightly hard time reading the diff, but are you running the tests only once (you mentioned running it more than once in a chat)?

@meatball133
Copy link
Member Author

I am running from run.sh and there you can see it is only called once. It even runs in parallel, so may be faster? I am not sure.

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

Tiny nit

"status" : "fail"
"message" : "/solution/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift:19: error: MultipleWithExceptionTests.testThrow : XCTAssertEqual threw error \"testError(\"Oh noes! Div by zeroes!!!\")\" -",
"name" : "testThrow",
"status" : "error",
Copy link
Member

Choose a reason for hiding this comment

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

This should be a fail, as error is for when the tests couldn't even run (which they did in this case).

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, I guess that at least in swift, I guess a single test case can't be labeled as 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.

Yeah. Same goes for virtually all compiled languages

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

Fab!

@ErikSchierboom ErikSchierboom added the x:rep/large Large amount of reputation label Jun 8, 2023
@ErikSchierboom ErikSchierboom merged commit aee8849 into exercism:main Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:rep/large Large amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants