Comments (10)
@yashshah14093 @lucifer0987 - if you're working on this issue, make sure to update your branch to changes made in #41
from codemon.
Hey,
I came to know about this project from NJACK winter of code.
I want to work on this issue.
Can you please explain about these files? I understood the remaining things.
test_case.cpp (program to write testcase)
prog
test_case (generate testcases in this file)
Hoping for a reply soon!!
from codemon.
@lucifer0987 - Watch this video by Errichto. Note the part where he writes a program to generate testcases. Therefore, test_case.cpp
is the file where user is supposed to write that program.
When we compile C++, we get a.out
which has been renamed as prog
here. test_case
is the file where the testcases generated by the program in test_case.cpp
has to be saved.
Note: Start working only after Dec 1 in order to get points.
from codemon.
ok, got it.
Thanks for quick reply.
Just a suggestion.
Since, testcases that anyone is going to generate differs from task to task. Can't we generate these 3 files for each task separately?
That way, we can write the generated testcases directly into the "input" file of each task.
And, each task will have 5 files.
a.cpp - c++ code
a.in - input given to the code
a.op - output generated by the code
prog (a.out)
test_case.cpp - program for generating testcases
when we run "test_case.cpp", the generated test cases(outputs) are stored in "a.in" directly. From there, we can use the generated test_cases directly.
from codemon.
@lucifer0987 - During a contest, we need not write testcases for each problem. If we create 3 files for each task, we will have a lot of redundant files which will simply eat our storage. Therefore, this solution would not be very helpful for some people.
However, if you can add a command codemon clean
, which clears up all the mess(prog, input.txt, testcase files) after a contest, then this might work.
from codemon.
Yeah sure!!
That would be a good thing.
I will implement codemon clean.
Only the cpp files of the tasks will be remaining.
from codemon.
Only the cpp files of the tasks will be remaining.
There is a catch to this. We can't randomly delete the mess. We can directly delete prog. But for input.txt
, we must check whether it contains something, if its empty delete it else give an error message saying "Input file is not empty, do you want to delete ? (Y/N)` and user can decide what to do with it. For the testcase files, we have to "diff" them before deleting, i.e., if the testcase files had no changes in it then it can be deleted else if any kind of changes was done, they must stay.
from codemon.
Can you create a separate issue for codemon clean
and express these ideas properly there?
from codemon.
yeah sure!!
I will make a separate issue for codemon clean. And, meanwhile, work on this issue.
PS. :- can we connect with you anywhere apart from github?
from codemon.
can we connect with you anywhere apart from github?
I've created a gitter chatroom for this project. Check README.
from codemon.
Related Issues (20)
- Improving the efficiency of template in codemonMeta.py HOT 3
- validation on codemon reg
- Improvements for "codemon fetch" HOT 2
- Improve Help message `codemon --help` HOT 3
- Add a sensible default template (java) HOT 6
- Add a sensible default template (python) HOT 5
- Adding custom templates HOT 2
- Contributors Image In Readme HOT 2
- [FEAT] C++ template can be updated HOT 2
- Use registered username in template HOT 1
- codemon init --count ? HOT 2
- Codemon is not testiing my solution [Mac] HOT 5
- Fix commands arg parsing HOT 1
- Fix Codemon Listen
- Advent of Code support ?
- Command description in ReadMe HOT 1
- not working on M1 mac
- Publish a latest version to pip
- watchdog runs twice after saving file HOT 1
- C++ compile target not working on Mac
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 codemon.