lib/tests: Add overrideExisting tests
This commit is contained in:
parent
5cfdec6e94
commit
afd8620621
|
@ -236,6 +236,20 @@ runTests {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
testOverrideExistingEmpty = {
|
||||||
|
expr = overrideExisting {} { a = 1; };
|
||||||
|
expected = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
testOverrideExistingDisjoint = {
|
||||||
|
expr = overrideExisting { b = 2; } { a = 1; };
|
||||||
|
expected = { b = 2; };
|
||||||
|
};
|
||||||
|
|
||||||
|
testOverrideExistingOverride = {
|
||||||
|
expr = overrideExisting { a = 3; b = 2; } { a = 1; };
|
||||||
|
expected = { a = 1; b = 2; };
|
||||||
|
};
|
||||||
|
|
||||||
# GENERATORS
|
# GENERATORS
|
||||||
# these tests assume attributes are converted to lists
|
# these tests assume attributes are converted to lists
|
||||||
|
|
Loading…
Reference in New Issue