function testRangeToList() { $s = '93865-93932'; $expected = array(array(93865, 93932)); $a = GSB_Updater::range2list($s); $this->assertEquals($expected, $a); $s = '1-3,5-6,9,11'; $expected = array(array(1, 3), array(5, 6), array(9, 9), array(11, 11)); $a = GSB_Updater::range2list($s); $this->assertEquals($expected, $a); $s = '1'; $expected = array(array(1, 1)); $a = GSB_Updater::range2list($s); $this->assertEquals($expected, $a); }