|
796 | 796 | side1 = side.createSection(sideName, 'nixSection');
|
797 | 797 |
|
798 | 798 | % test find by id
|
799 |
| - filtered = sl1.FilterFindSections(1, nix.Filter.id, sl41.id); |
| 799 | + filtered = sl1.filterFindSections(1, nix.Filter.id, sl41.id); |
800 | 800 | assert(isempty(filtered));
|
801 |
| - filtered = sl1.FilterFindSections(4, nix.Filter.id, sl41.id); |
| 801 | + filtered = sl1.filterFindSections(4, nix.Filter.id, sl41.id); |
802 | 802 | assert(size(filtered, 1) == 1);
|
803 | 803 | assert(strcmp(filtered{1}.id, sl41.id));
|
804 | 804 |
|
805 | 805 | % test find by ids
|
806 | 806 | filterids = {sl1.id, sl41.id};
|
807 |
| - filtered = sl1.FilterFindSections(1, nix.Filter.ids, filterids); |
| 807 | + filtered = sl1.filterFindSections(1, nix.Filter.ids, filterids); |
808 | 808 | assert(size(filtered, 1) == 1);
|
809 |
| - filtered = sl1.FilterFindSections(4, nix.Filter.ids, filterids); |
| 809 | + filtered = sl1.filterFindSections(4, nix.Filter.ids, filterids); |
810 | 810 | assert(size(filtered, 1) == 2);
|
811 | 811 |
|
812 | 812 | % test find by name
|
813 |
| - filtered = sl1.FilterFindSections(5, nix.Filter.name, sideName); |
| 813 | + filtered = sl1.filterFindSections(5, nix.Filter.name, sideName); |
814 | 814 | assert(isempty(filtered));
|
815 |
| - filtered = sl1.FilterFindSections(1, nix.Filter.name, sl41.name); |
| 815 | + filtered = sl1.filterFindSections(1, nix.Filter.name, sl41.name); |
816 | 816 | assert(isempty(filtered));
|
817 |
| - filtered = sl1.FilterFindSections(4, nix.Filter.name, sl41.name); |
| 817 | + filtered = sl1.filterFindSections(4, nix.Filter.name, sl41.name); |
818 | 818 | assert(size(filtered, 1) == 1);
|
819 | 819 | assert(strcmp(filtered{1}.name, sl41.name));
|
820 | 820 |
|
821 | 821 | % test find by type
|
822 |
| - filtered = sl1.FilterFindSections(1, nix.Filter.type, findSection); |
| 822 | + filtered = sl1.filterFindSections(1, nix.Filter.type, findSection); |
823 | 823 | assert(isempty(filtered));
|
824 |
| - filtered = sl1.FilterFindSections(4, nix.Filter.type, findSection); |
| 824 | + filtered = sl1.filterFindSections(4, nix.Filter.type, findSection); |
825 | 825 | assert(size(filtered, 1) == 3);
|
826 | 826 | assert(strcmp(filtered{1}.type, findSection));
|
827 | 827 |
|
828 | 828 | % test fail on nix.Filter.metadata
|
829 | 829 | err = 'unknown or unsupported filter';
|
830 | 830 | try
|
831 |
| - sl1.FilterFindSections(1, nix.Filter.metadata, 'metadata'); |
| 831 | + sl1.filterFindSections(1, nix.Filter.metadata, 'metadata'); |
832 | 832 | catch ME
|
833 | 833 | assert(strcmp(ME.message, err));
|
834 | 834 | end
|
835 | 835 |
|
836 | 836 | % test fail on nix.Filter.source
|
837 | 837 | try
|
838 |
| - sl1.FilterFindSections(1, nix.Filter.source, 'source'); |
| 838 | + sl1.filterFindSections(1, nix.Filter.source, 'source'); |
839 | 839 | catch ME
|
840 | 840 | assert(strcmp(ME.message, err));
|
841 | 841 | end
|
|
0 commit comments