actlib_dataflow_neuro/test/unit_tests/delayprog_4/test.prsim

43 lines
502 B
Plaintext
Raw Normal View History

2022-03-01 15:26:43 +01:00
watchall
system "echo '0'"
2022-04-04 17:35:34 +02:00
set t.in 0
2022-03-01 15:26:43 +01:00
set t.s[0] 1
set t.s[1] 1
set t.s[2] 1
set t.s[3] 1
cycle
mode run
2022-04-04 17:35:34 +02:00
# assert t.out 0
2022-03-01 15:26:43 +01:00
system "echo '[] setting high'"
2022-04-04 17:35:34 +02:00
set t.in 1
2022-03-01 15:26:43 +01:00
cycle
2022-04-04 17:35:34 +02:00
assert t.out 1
2022-03-01 15:26:43 +01:00
system "echo '[] setting low'"
2022-04-04 17:35:34 +02:00
set t.in 0
2022-03-01 15:26:43 +01:00
cycle
2022-04-04 17:35:34 +02:00
assert t.out 0
2022-03-01 15:26:43 +01:00
system "echo '[] setting configs low'"
set t.s[0] 0
set t.s[1] 0
set t.s[2] 0
set t.s[3] 0
cycle
2022-04-04 17:35:34 +02:00
assert t.out 0
2022-03-01 15:26:43 +01:00
system "echo '[] setting high'"
2022-04-04 17:35:34 +02:00
set t.in 1
2022-03-01 15:26:43 +01:00
cycle
2022-04-04 17:35:34 +02:00
assert t.out 1
2022-03-01 15:26:43 +01:00
system "echo '[] setting low'"
2022-04-04 17:35:34 +02:00
set t.in 0
2022-03-01 15:26:43 +01:00
cycle
2022-04-04 17:35:34 +02:00
assert t.out 0