Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Testsing] Adds test data files #34

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
clearloop merged 1 commit into clearloop:master from shmuga:master
May 11, 2021
Merged

Conversation

Copy link
Contributor

@shmuga shmuga commented May 11, 2021

Scope: introduces a test data files that are created alongside with code
files. Those files are pre-filled with sample tests from leetcode and
could be extended with the custom values. CLI test input has always a
priority over test files. If test file is missing and test input is not
provided, sample test case is used as was previously.

Changes:

  • Fixes a bug with missing Vec<> inside of optional
  • Adds runtime error message to the output
  • Generates a test file when test is created

Fixes #26

pub struct MetaData {
pub name: Option<String>,
pub params: Option<Param>,
pub params: Option<Vec<Param>>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This params option was failing in the latest version of the CLI, seems having it as Option<Vec< works fine

clearloop reacted with thumbs up emoji
Copy link
Owner

@clearloop clearloop May 11, 2021

Choose a reason for hiding this comment

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

Good Catch! Fixed in 02f8d66 but forgot to push LOL

Scope: introduces a test data files that are created alongside with code
files. Those files are pre-filled with sample tests from leetcode and
could be extended with the custom values. CLI test input has always a
priority over test files. If test file is missing and test input is not
provided, sample test case is used as was previously.
Changes:
- Fixes a bug with missing Vec<> inside of optional
- Adds runtime error message to the output
- Generates a test file when test is created
@clearloop clearloop merged commit 3d3668b into clearloop:master May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@clearloop clearloop clearloop left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Test cases files
2 participants

AltStyle によって変換されたページ (->オリジナル) /