Skip to content

[Feature Request]: A better approach in validating solutions #55

Open

Description

@rishabhKalakoti

Problem
If we give such a solution for task 4 of JS,

console.log('33\n14\nJS\n Hey, this is Task 4 of Python Path!\n Hey, this is Task 4 of Python Path! !\n Hey, this is Task 4 of Python Path! !');

the current program will consider it as the correct solution.
But the user manually solved the problem and just printed the answer he got without using the language constructs.

Proposed solution
The user can operate on a set of unknown test cases which will be taken as input or passed to a predefined function as arguments and the user needs to.
Eg:

function task1(arg) {
    // user needs to do the task on the given argument (arg) and return the output
}

We can give multiple values of arg as testcases

Additional context
The current program is correct as long as the user honestly does the tasks. And adding the test cases will also be an additional work added on top of editing the program. Also, the user will need to understand the basic I/O before attempting the tasks. So the priority of this issue might be kept low for these reasons.

Open to discussion.

Activity

  1. added
    feature-request
    on Dec 12, 2019
  2. added
    discuss
    enhancement
    help wanted
    on Dec 27, 2019
  3. changed the title [-]feat: take input from user in the code[/-] [+][Feature Request]: A better approach in validatig solutions[/+] on Dec 27, 2019
  4. changed the title [-][Feature Request]: A better approach in validatig solutions[/-] [+][Feature Request]: A better approach in validating solutions[/+] on Dec 27, 2019
  5. added this to the v1.3.0 milestone on Jan 12, 2020
  6. removed this from the v1.3.0 milestone on Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussenhancementfeature-requesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions