Giter VIP home page Giter VIP logo

Comments (17)

prabh1601 avatar prabh1601 commented on May 10, 2024 1

Hi Nikita and Janata!

Considering nikita its a good feature to have a button for the same I think it should be like that only because sometimes output can stretch in cases of displaying arrays / strings etc and you always wont want to see a stretched window . But also I think Janata has a fully valid point here.

In my opinion a button besides the accept/decline button can do the job.

Also I would be very happy to have better ideas for the same

from fastolympiccoding.

npanuhin avatar npanuhin commented on May 10, 2024

Hello!
Nice idea. In my opinion, this should be implemented as another button (next to "run" and "edit"):

[ test 0 ]  [ edit ]  [ run ]  [ expected ]  [ time: 69ms ]

and expected toggles between this:

[ test 0 ]  [ edit ]  [ run ]  [ expected ]  [ time: 69ms ]
test input

test output
[ decline ]

and this:

[ test 0 ]  [ edit ]  [ run ]  [ expected ]  [ time: 69ms ]
test input

test output

[ expected output: ]
expected output
[ decline ]

Also:

  • expected output as time: Xms or test X is not clickable
  • expected button (clickable of course) and the whole structure only appears if the target result of that case is saved

from fastolympiccoding.

Jatana avatar Jatana commented on May 10, 2024

Hi!

I think it is an interesting idea to add the expected output feature.

However, the test bar already contains test number, edit, run, and time, so adding the expected button there would be too much.
An alternative to a button could be a key binding, a menu option, or something else.

So, I am open to suggestions about the best way to integrate this feature.

from fastolympiccoding.

npanuhin avatar npanuhin commented on May 10, 2024

I added an expected output button after decline and I think it looks and works well. But I can't figure out how actions work. (Also, why is there a list of expected results for each test case?)

Jatana, could you, please, implement toggling the expected result when this button is clicked (href: click-expected)?

When there is no expected result:
изображение

When there is an expected result:
изображение

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

This looks neat. I guess once Janata give a green flag to this implementation and also fixes the issues that you are getting it would great one to have.

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

Hey Nikita and Janata !
Are there any updates for the same ?

from fastolympiccoding.

npanuhin avatar npanuhin commented on May 10, 2024

Hello!
The problem is that you can actually store multiple correct answers for a single test.
Then the only option is to print the expected output only if there is only one such possible output. Currently, I have not figured out what to do if there are several of them...

from fastolympiccoding.

Jatana avatar Jatana commented on May 10, 2024

I think printing one of the correct answers could be a solution because in most cases there is only one correct answer to a test.

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

I agree with the point of Janata .. almost of the sample cases that are provided at a site are provided with a single test case answer but however pertaining to the point of Nikita I think just showing the first correct answer can be a viable option .

from fastolympiccoding.

npanuhin avatar npanuhin commented on May 10, 2024

Ok, thank you. I will try to implement this in the nearest future.

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

Oh thats great, I would be looking forward to hear from you soon .

from fastolympiccoding.

npanuhin avatar npanuhin commented on May 10, 2024

Hello!
@Jatana, I still can't figure out how to insert text into an existing layout (i.e. just a page). Please help with this :)

PS: If it will be a bit helpful, I added a boolean expected_output_toggledvariable and a function get_correct_answer for the Test class

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

Hi @npanuhin @Jatana !
I appreciate the efforts being put into my request and really thank you for it.
Just wanted a little update that how are things going

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

Hi Guys ! Any further updates ?

from fastolympiccoding.

Jatana avatar Jatana commented on May 10, 2024

Sorry, I've been extremely busy this and previous month. I'll try to find some time in the upcoming days to implement the feature.

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

I appreciate your efforts man thank you

from fastolympiccoding.

prabh1601 avatar prabh1601 commented on May 10, 2024

Hi @Jatana @npanuhin !
Just wanted to ask if there are any plans for this feature to be encorporated in the further updates ?

from fastolympiccoding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.