Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

teamrudra/R24-Test-Hex-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important Notice

  1. The MCQ Test will be open till 7:30 and can be attempted at any time before 7:30
  2. The Pull Request can be made until 9:00 after which the Repo will be archived.
  3. 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.

R24-Test-Hex-Editor

This repo contains source files for hex editor. This generates hexdump and edited hexdump to binary file. The tests folder contains units tests

Instructions

  1. Fork this repo
  2. Select an ISSUE to work on from the ISSUES section
  3. Commit and push your changes to the fork
  4. When told, make a PULL REQUEST describing the changes and include the details.

Building

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.