mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix boundary problem in range node (#1338)
* Fix boundary problem in range node * Remove duplicated test case * Empty commit to retry Travis CI
This commit is contained in:
committed by
Nick O'Leary
parent
a40b3dd377
commit
c6e453fb00
@@ -90,14 +90,14 @@ describe('range Node', function() {
|
||||
genericRangeTest("roll", 0, 10, 0, 360, true, 12.5, 90, done); // 1/4 around wrap => "one and a quarter turns"
|
||||
});
|
||||
|
||||
it('wraps numbers around say for degree/rotation reading 1/4', function(done) {
|
||||
genericRangeTest("roll", 0, 10, 0, 360, true, 12.5, 90, done); // 1/4 around wrap => "one and a quarter turns"
|
||||
});
|
||||
|
||||
it('wraps numbers down say for degree/rotation reading 1/4', function(done) {
|
||||
genericRangeTest("roll", 0, 10, 0, 360, true, -12.5, 270, done); // 1/4 backwards wrap => "one and a quarter turns backwards"
|
||||
});
|
||||
|
||||
it('wraps numbers around say for degree/rotation reading 0', function(done) {
|
||||
genericRangeTest("roll", 0, 10, 0, 360, true, -10, 0, done);
|
||||
});
|
||||
|
||||
it('clamps numbers within a range - over max', function(done) {
|
||||
genericRangeTest("clamp", 0, 10, 0, 1000, false, 111, 1000, done);
|
||||
});
|
||||
|
Reference in New Issue
Block a user