Skip to content

Commit

Permalink
Re #1786 one more unit test for fast_map with uint64 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Feb 18, 2025
1 parent 01a28b1 commit f55f01b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _test/test_utilities_herbert/test_fast_map.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
end
%------------------------------------------------------------------
%------------------------------------------------------------------
function test_build_uint64_map_from_constructor(~)
keys= uint64([10,20,30]);
val = 1:3;
fm = fast_map(keys,val);

assertEqual(fm.KeyType,'uint64');
assertEqual(fm.keys,keys);
assertEqual(fm.values,val);
end

function test_set_different_key_type(~)
fm = fast_map();
fm.KeyType = uint64(1);
Expand Down

0 comments on commit f55f01b

Please sign in to comment.