mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-31 17:17:31 +00:00
12 lines
317 B
Python
12 lines
317 B
Python
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
from haystack.testing.sample_components import Subtract
|
|
|
|
|
|
def test_subtract():
|
|
component = Subtract()
|
|
results = component.run(first_value=10, second_value=7)
|
|
assert results == {"difference": 3}
|