mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-05 21:45:06 +00:00
[test-multimap] More tests
This commit is contained in:
parent
ff419789ef
commit
ddeac3658b
1 changed files with 9 additions and 0 deletions
|
@ -45,6 +45,15 @@ main (int argc, char **argv)
|
|||
assert (m.get (10)[2] == 13);
|
||||
|
||||
assert (m.get (11).length == 0);
|
||||
m.add (11, 14);
|
||||
assert (m.get (10).length == 3);
|
||||
assert (m.get (11).length == 1);
|
||||
assert (m.get (12).length == 0);
|
||||
assert (m.get (10)[0] == 11);
|
||||
assert (m.get (10)[1] == 12);
|
||||
assert (m.get (10)[2] == 13);
|
||||
assert (m.get (11)[0] == 14);
|
||||
assert (m.get (12)[0] == 0); // Array fallback value
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue