Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
modules/boolean: set default number of samples on buffer
Browse files Browse the repository at this point in the history
To make it work like int/buffer.

Signed-off-by: Bruno Dilly <bruno.dilly@intel.com>
  • Loading branch information
bdilly committed Sep 4, 2015
1 parent 2c01b74 commit 773c62e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/modules/flow/boolean/boolean.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
"members": [
{
"data_type": "int",
"default": 4,
"description": "Number of samples that the buffer should hold.",
"name": "samples"
},
Expand Down
16 changes: 8 additions & 8 deletions src/test-fbp/boolean-buffer.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,30 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

input1(test/boolean-generator:sequence=FFFF,interval=50) OUT -> IN all_false_buffer(boolean/buffer:samples=4,operation=all_false)
input1(test/boolean-generator:sequence=FFFF,interval=50) OUT -> IN all_false_buffer(boolean/buffer:operation=all_false)
all_false_buffer OUT -> RESULT t1(test/result)

input2(test/boolean-generator:sequence=TTTT,interval=50) OUT -> IN all_true_buffer(boolean/buffer:samples=4,operation=all_true)
input2(test/boolean-generator:sequence=TTTT,interval=50) OUT -> IN all_true_buffer(boolean/buffer:operation=all_true)
all_true_buffer OUT -> RESULT t2(test/result)

input3(test/boolean-generator:sequence=FFTF,interval=50) OUT -> IN any_true_buffer(boolean/buffer:samples=4,operation=any_true)
input3(test/boolean-generator:sequence=FFTF,interval=50) OUT -> IN any_true_buffer(boolean/buffer:operation=any_true)
any_true_buffer OUT -> RESULT t3(test/result)

input4(test/boolean-generator:sequence=TFTT,interval=50) OUT -> IN any_false_buffer(boolean/buffer:samples=4,operation=any_false)
input4(test/boolean-generator:sequence=TFTT,interval=50) OUT -> IN any_false_buffer(boolean/buffer:operation=any_false)
any_false_buffer OUT -> RESULT t4(test/result)

# Negative tests

input5(test/boolean-generator:sequence=FFTF,interval=50) OUT -> IN nall_false_buffer(boolean/buffer:samples=4,operation=all_false)
input5(test/boolean-generator:sequence=FFTF,interval=50) OUT -> IN nall_false_buffer(boolean/buffer:operation=all_false)
nall_false_buffer OUT -> IN _(boolean/not) OUT -> RESULT t5(test/result)

input6(test/boolean-generator:sequence=TFTT,interval=50) OUT -> IN nall_true_buffer(boolean/buffer:samples=4,operation=all_true)
input6(test/boolean-generator:sequence=TFTT,interval=50) OUT -> IN nall_true_buffer(boolean/buffer:operation=all_true)
nall_true_buffer OUT -> IN _(boolean/not) OUT -> RESULT t6(test/result)

input7(test/boolean-generator:sequence=FFFF,interval=50) OUT -> IN nany_true_buffer(boolean/buffer:samples=4,operation=any_true)
input7(test/boolean-generator:sequence=FFFF,interval=50) OUT -> IN nany_true_buffer(boolean/buffer:operation=any_true)
nany_true_buffer OUT -> IN _(boolean/not) OUT -> RESULT t7(test/result)

input8(test/boolean-generator:sequence=TTTT,interval=50) OUT -> IN nany_false_buffer(boolean/buffer:samples=4,operation=any_false)
input8(test/boolean-generator:sequence=TTTT,interval=50) OUT -> IN nany_false_buffer(boolean/buffer:operation=any_false)
nany_false_buffer OUT -> IN _(boolean/not) OUT -> RESULT t8(test/result)


Expand Down

0 comments on commit 773c62e

Please sign in to comment.