Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

NISP - Planning ID Unit Test

Language: Layout:
+ ] Show input
Absolute running time: 0.08 sec, cpu time: 0.02 sec, memory peak: 3 Mb, absolute service time: 0,1 sec  
latest |  history
***** RUN TEST 1 (NOMINAL) *****

temp type u_id led  flux  cycle dith | planning id  (expected) | planning id  (expected) |  test-result
-------------------------------------------------------------------------------------------------------
{WARM EXPO    0 NONE     0    0    0}: 0x00000000 = 0x00000000 |          0 =          0 PASSED
{COLD EXPO    0 NONE     0    0    0}: 0x00800000 = 0x00800000 |    8388608 =    8388608 PASSED
{WARM SFT     0 NONE     0    0    0}: 0x00400000 = 0x00400000 |    4194304 =    4194304 PASSED
{WARM FFT     0 NONE     0    0    0}: 0x80400000 = 0x80400000 | 2151677952 = 2151677952 PASSED
{WARM EXPO    1 NONE     0    0    0}: 0x01000000 = 0x01000000 |   16777216 =   16777216 PASSED
{WARM EXPO  255 NONE     0    0    0}: 0xFF000000 = 0xFF000000 | 4278190080 = 4278190080 PASSED
{WARM SFT     1 NONE     0    0    0}: 0x01400000 = 0x01400000 |   20971520 =   20971520 PASSED
{WARM SFT   127 NONE     0    0    0}: 0x7F400000 = 0x7F400000 | 2134900736 = 2134900736 PASSED
{WARM FFT     1 NONE     0    0    0}: 0x81400000 = 0x81400000 | 2168455168 = 2168455168 PASSED
{WARM FFT   127 NONE     0    0    0}: 0xFF400000 = 0xFF400000 | 4282384384 = 4282384384 PASSED
{WARM EXPO    0 LED#1    0    0    0}: 0x00080000 = 0x00080000 |     524288 =     524288 PASSED
{WARM EXPO    0 LED#2    0    0    0}: 0x00100000 = 0x00100000 |    1048576 =    1048576 PASSED
{WARM EXPO    0 LED#3    0    0    0}: 0x00180000 = 0x00180000 |    1572864 =    1572864 PASSED
{WARM EXPO    0 LED#4    0    0    0}: 0x00200000 = 0x00200000 |    2097152 =    2097152 PASSED
{WARM EXPO    0 LED#5    0    0    0}: 0x00280000 = 0x00280000 |    2621440 =    2621440 PASSED
{WARM EXPO    0 LED#1    7    0    0}: 0x000F0000 = 0x000F0000 |     983040 =     983040 PASSED
{WARM EXPO    0 NONE     0 4095    0}: 0x0000FFF0 = 0x0000FFF0 |      65520 =      65520 PASSED
{WARM EXPO    0 NONE     0    0   15}: 0x0000000F = 0x0000000F |         15 =         15 PASSED
{WARM EXPO  255 LED#1    7 4095   15}: 0xFF0FFFFF = 0xFF0FFFFF | 4279238655 = 4279238655 PASSED
{WARM EXPO  100 LED#2    5 1000    1}: 0x64153E81 = 0x64153E81 | 1679113857 = 1679113857 PASSED
{COLD FFT     3 LED#2    5 1000    1}: 0x83D53E81 = 0x83D53E81 | 2211790465 = 2211790465 PASSED
{COLD FFT   127 LED#5    7 4095   15}: 0xFFEFFFFF = 0xFFEFFFFF | 4293918719 = 4293918719 PASSED
{WARM EXPO  255 NONE    0      0   1}: 0xFF000001 = 0xFF000001 | 4278190081 = 4278190081 PASSED

***** RUN TEST 2 (OUT OF RANGE)***** 

temp type u_id led  flux  cycle dith | planning id  (expected) | planning id  (expected) |  test-result
-------------------------------------------------------------------------------------------------------
WARNING: cannot compute the planning ID: 
 - unique_id (-1) shall be integer [0,255]
{WARM EXPO   -1 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - unique_id (256) shall be integer [0,255]
{WARM EXPO  256 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - unique_id (-1) shall be integer [0,127]
{WARM SFT    -1 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - unique_id (128) shall be integer [0,127]
{WARM SFT   128 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - unique_id (-1) shall be integer [0,127]
{WARM FFT    -1 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - unique_id (128) shall be integer [0,127]
{WARM FFT   128 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - led_flux_id (-1) shall be integer [0,7]
{WARM EXPO    0 NONE    -1    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - led_flux_id (8) shall be integer [0,7]
{WARM EXPO    0 NONE     8    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - cycle_or_subcase (-1) shall be integer [0,4095]
{WARM EXPO    0 NONE     0   -1    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - cycle_or_subcase (4096) shall be integer [0,4095]
{WARM EXPO    0 NONE     0 4096    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - dither (-1) shall be integer [0,15]
{WARM EXPO    0 NONE     0    0   -1}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - dither (16) shall be integer [0,15]
{WARM EXPO    0 NONE     0    0   16}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED

***** RUN TEST 3 (INVALID) *****

temp type u_id led  flux  cycle dith | planning id  (expected) | planning id  (expected) |  test-result
-------------------------------------------------------------------------------------------------------
WARNING: cannot compute the planning ID: 
 - temp_case (DUM) shall be WARM or COLD
{DUM  EXPO    0 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - test_type (DUM) shall be SFT, FFT or EXPO
{WARM DUM     0 NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - unique_id (DUM) shall be integer [0,255]
{WARM EXPO  DUM NONE     0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - led_id (DUM) shall be LED#1, LED#2, LED#3, LED#4, LED#5 or NONE
{WARM EXPO    0 DUM      0    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - led_flux_id (DUM) shall be integer [0,7]
{WARM EXPO    0 NONE   DUM    0    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - cycle_or_subcase (DUM) shall be integer [0,4095]
{WARM EXPO    0 NONE     0  DUM    0}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - dither (DUM) shall be integer [0,15]
{WARM EXPO    0 NONE     0    0  DUM}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED
WARNING: cannot compute the planning ID: 
 - temp_case (DUM) shall be WARM or COLD
 - test_type (DUM) shall be SFT, FFT or EXPO
 - unique_id (DUM) shall be integer [0,127]
 - led_id (DUM) shall be LED#1, LED#2, LED#3, LED#4, LED#5 or NONE
 - led_flux_id (DUM) shall be integer [0,7]
 - cycle_or_subcase (DUM) shall be integer [0,4095]
 - dither (DUM) shall be integer [0,15]
{DUM  DUM   DUM DUM    DUM  DUM  DUM}: 0xFFFFFFFF = 0xFFFFFFFF | 4294967295 = 4294967295 PASSED

***** RUN TEST 4 (TEST_ID) *****

temp type u_id led  flux  cycle dith | planning id | tv2 test id  (expected) |  test-result
-------------------------------------------------------------------------------------------------------
{WARM EXPO  255 NONE    0      0   0}: 0xFF000000 ->       1020 =       1020 PASSED


RESULT: 44 passed, 0 FAILED


    
                
λ
.NET NoSQL database for rapid development