OSDN Git Service

rangelib.py: Fix the bug in monotonic check.
authorTao Bao <tbao@google.com>
Thu, 27 Aug 2015 00:07:14 +0000 (17:07 -0700)
committerTao Bao <tbao@google.com>
Thu, 27 Aug 2015 04:16:43 +0000 (21:16 -0700)
commite8f756137c39fc3292014f2eab5f84c6e5135797
treeb2f438b6778a16bf8aefedc0af62ea603fcc5822
parent14342066dbaec25593c12fdba5396d4ca9cad841
rangelib.py: Fix the bug in monotonic check.

RangeSet("2-10").monotonic gives a wrong result of "False". Fix the bug
and add more tests into test_rangelib.py.

Change-Id: I04780571b45ecafd34040f405756b9745a9e21a5
tools/releasetools/rangelib.py
tools/releasetools/test_rangelib.py