An unique index will consider nulls to be different so those values can be inserted:
create table t (a int, b int, c int, unique (a, b, c));
insert into t (a, b, c) values
(1, 2, null),
(1, 2, null);
INSERT 0 2
Show your experiment in which that is not allowed.