block_rangecheck.test.ctrl 739 Bytes
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1

2
3
4
5
trigger {
	{ "immediate" }
}

Jeroen Vreeken's avatar
Jeroen Vreeken committed
6
blocks (10.0, 0.0) {
Jeroen Vreeken's avatar
Jeroen Vreeken committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	{ "rangecheck", "rangecheck" }
	
	{ "test_input_float", "in" }
	
	{ "test_output_bool", "valid"   }
	{ "test_output_bool", "invalid" }
}

links {
	{ "in", "value",           "rangecheck", "in", true }
	{ "rangecheck", "valid",   "valid", "value",   true }
	{ "rangecheck", "invalid", "invalid", "value", true }
}

params {
	{ "rangecheck", "min", (float) -11.1 }
	{ "rangecheck", "max", (float)  22.2 }
	
	{ "in", "value", 7, (float) 
		{ 0.0, -100.0, -11.1, -11.0, 22.0, 22.2, 100.0 } 
	}

	{ "valid", "value", 7, (int)
		{ true, false, true, true, true, true, false }
	}
	{ "invalid", "value", 7, (int)
		{ false, true, false, false, false, false, true }
	}
}
36
37

set trace_server false