apjanke / octave-tablicious

Table (relational, tabular data) implementation for GNU Octave
https://apjanke.github.io/octave-tablicious/
GNU General Public License v3.0
28 stars 11 forks source link

Add more tests for table subscripting #133

Closed rdzman closed 5 months ago

rdzman commented 5 months ago

Here are some additional tests for table subscripting for some cases I had missed in my original tests for mp_table.

Most are focused on subsref() and subasgn() for the following cases:

T{*, <str>}
T{*, <cell>}
T(*, <str>)
T(*, <cell>)

This functionality is already in Tablicious and is working just fine, but somehow I'd missed it when implementing my mp_table (now fixed).

Thought I'd pass this along to make the test suite just a bit more complete.

apjanke commented 5 months ago

Sweet, thanks! Merging.

These tests are passing for me too, on head of main in octave-tablicious.

>> tblish_test_tablicious
tests =
{
  [1,1] = t_00_dummy_mptest_check
  [2,1] = t_01_table
}

t_00_dummy_mptest_check....ok (1 of 4 skipped)
t_01_table.................ok (1 of 237 skipped)
All tests successful (239 passed, 2 skipped of 241)
Elapsed time 0.56 seconds.
>>