Coding Period – Report (9)

Hello there, this is my weekly report about my work. In this report, I will show what I did this past week. I will also show what I intend to do in the next week. let’s get started.

That’s what is done
  • I finished writing jsonencode function in the new “standalone” repository. The function now passes all the 64 tests in the test suite. The function now encodes:
    • logical scalar
    • NaN, Inf and -Inf
    • numeric scalar
    • containers.Map
    • Structure scalar
    • Structure array
    • Cell scalar
    • Cell array
    • numeric array
    • logical array
    • character vector
    • character array
How to compile and run tests on the code

Right now, the code is treated as an external *.oct file. The integration of the code into Octave’s build system will be done at the end of the project. To compile it:

  • cd into the repo’s directory.
  • run mkoctfile command using the file name (eg. as an argument.

Octave test files are provided for each function. For example, you can run the one that tests jsonencode by running this command:


The log file “log-jsonencode.txt” in “test” in your repo’s directory will have the data of the failed tests.

What I intend to do
  • Write the documentation of both functions.
  • Integrate the test suite with the code (the test suite is already converted into Octave BIST)
  • Start integrating the functions with Octave’s code base.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with
Get started
%d bloggers like this: