Mercurial > octave
comparison scripts/general/nextpow2.m @ 31200:075443476dfb stable
nextpow2.m: Add bug number tag to regression BIST tests (bug #62947)
* nextpow2.m: Add '<*62947>' to BIST tests for bug #62947.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 24 Aug 2022 08:55:14 -0700 |
parents | 863730dd0f83 |
children | 597f3ee61a48 |
comparison
equal
deleted
inserted
replaced
31198:863730dd0f83 | 31200:075443476dfb |
---|---|
60 %!assert (nextpow2 (31), 5) | 60 %!assert (nextpow2 (31), 5) |
61 %!assert (nextpow2 (-16), 4) | 61 %!assert (nextpow2 (-16), 4) |
62 %!assert (nextpow2 (-17), 5) | 62 %!assert (nextpow2 (-17), 5) |
63 %!assert (nextpow2 (-31), 5) | 63 %!assert (nextpow2 (-31), 5) |
64 %!assert (nextpow2 (1:17), [0 1 2 2 3 3 3 3 4 4 4 4 4 4 4 4 5]) | 64 %!assert (nextpow2 (1:17), [0 1 2 2 3 3 3 3 4 4 4 4 4 4 4 4 5]) |
65 %!assert (nextpow2 (0.5), -1) | 65 %!assert <*62947> (nextpow2 (0.5), -1) |
66 %!assert (nextpow2 (0.6), 0) | 66 %!assert <*62947> (nextpow2 (0.6), 0) |
67 ## Special cases | 67 ## Special cases |
68 %!assert (nextpow2 (0), 0) | 68 %!assert (nextpow2 (0), 0) |
69 %!assert (nextpow2 (1), 0) | 69 %!assert (nextpow2 (1), 0) |
70 %!assert (nextpow2 (Inf), Inf) | 70 %!assert (nextpow2 (Inf), Inf) |
71 %!assert (nextpow2 (-Inf), Inf) | 71 %!assert (nextpow2 (-Inf), Inf) |