summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/NodeTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Node/NodeTests.py')
-rw-r--r--src/engine/SCons/Node/NodeTests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/NodeTests.py b/src/engine/SCons/Node/NodeTests.py
index febb95a..017b7f2 100644
--- a/src/engine/SCons/Node/NodeTests.py
+++ b/src/engine/SCons/Node/NodeTests.py
@@ -132,6 +132,8 @@ class NodeTestCase(unittest.TestCase):
assert node.depends == ['one']
node.add_dependency(['two', 'three'])
assert node.depends == ['one', 'two', 'three']
+ node.add_dependency(['three', 'four', 'one'])
+ assert node.depends == ['one', 'two', 'three', 'four']
def test_add_source(self):
"""Test adding sources to a Node's list.
@@ -146,6 +148,8 @@ class NodeTestCase(unittest.TestCase):
assert node.sources == ['one']
node.add_source(['two', 'three'])
assert node.sources == ['one', 'two', 'three']
+ node.add_source(['three', 'four', 'one'])
+ assert node.sources == ['one', 'two', 'three', 'four']
def test_children(self):
"""Test fetching the "children" of a Node.