Comments (17)
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.
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
astime: Xms
ortest X
is not clickableexpected
button (clickable of course) and the whole structure only appears if the target result of that case is saved
from fastolympiccoding.
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.
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.
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.
Hey Nikita and Janata !
Are there any updates for the same ?
from fastolympiccoding.
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.
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.
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.
Ok, thank you. I will try to implement this in the nearest future.
from fastolympiccoding.
Oh thats great, I would be looking forward to hear from you soon .
from fastolympiccoding.
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_toggled
variable and a function get_correct_answer
for the Test
class
from fastolympiccoding.
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.
Hi Guys ! Any further updates ?
from fastolympiccoding.
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.
I appreciate your efforts man thank you
from fastolympiccoding.
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)
- Input is completely skipped HOT 2
- will FastOlympicCoding get updates in the future? HOT 1
- make stress test print the seed HOT 2
- is fastOlympicCoding removed from sublime ? HOT 13
- FastOlympicCoding isn't working! HOT 3
- The first testcase takes more time to run. HOT 6
- test cases not updating after changing __tests file HOT 2
- how to use debugger
- Not taking input, from user HOT 1
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 11: invalid continuation byte HOT 1
- custom key bindings HOT 3
- set class completion is not working as expected HOT 1
- Most important diff view not available HOT 2
- When the test case is relatively long, the result cannot be obtained or it runs for a long time
- how to set a different key to compile and run
- My compiler flags dont work.
- Retest the code(Runtime Error) but not click "stop"
- Compiling !!! HOT 2
- There's an option "algorithms_base" in settings,but no description. HOT 1
- The issue in TestSyntax.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastolympiccoding.