function testListToRange()
 {
     $vals = array(1, 2, 3, 5, 6, 8, 10, 12);
     $str = GSB_Updater::list2range($vals);
     $this->assertEquals("1-3,5-6,8,10,12", $str);
     $vals = array(1, 2, 3, 4);
     $str = GSB_Updater::list2range($vals);
     $this->assertEquals("1-4", $str);
     $vals = array(1, 3, 5, 7);
     $str = GSB_Updater::list2range($vals);
     $this->assertEquals('1,3,5,7', $str);
     $vals = array(1);
     $str = GSB_Updater::list2range($vals);
     $this->assertEquals('1', $str);
 }