- The MCQ Test will be open till 7:30 and can be attempted at any time before 7:30
- The Pull Request can be made until 9:00 after which the Repo will be archived.
- You are free to ask your questions in github discussions here
Note
Feel free to take advantage of Google, ChatGPT or other online resources during this test.
This repo contains source files for hex editor.
This generates hexdump and edited hexdump to binary file.
The tests
folder contains units tests
- Fork this repo
- Select an ISSUE to work on from the ISSUES section
- Commit and push your changes to the fork
- When told, make a PULL REQUEST describing the changes and include the details.
The editor can be built and run as follows:
$ gcc *.c -o hx.out
$ ./hx.out -b2h tests/test_bin2hex.txt
The unit tests can built and run as follows:
$ cd tests
$ gcc *.c ../utils.c -I .. -o test_hx.out
Above example builds the test_hx
unit test. It tests both the functionalities. It can be run as follows:
$ ./test_hx.out
test_hx.c:59:test_hx:PASS
-----------------------
1 Tests 0 Failures 0 Ignored
OK
All test cases pass, in this case.