function testFetchChangesetValue()
 {
     $f = new Tracker_FormElement_Field_FloatTestVersion();
     $this->assertIdentical('3.1416', $f->fetchChangesetValue(123, 456, 3.14159));
     $this->assertIdentical('0.0000', $f->fetchChangesetValue(123, 456, 0));
     $this->assertIdentical('2.0000', $f->fetchChangesetValue(123, 456, 2));
     $this->assertIdentical('', $f->fetchChangesetValue(123, 456, null));
 }
 public function itReturnsTheValueIndexedByFieldName()
 {
     $field = new Tracker_FormElement_Field_FloatTestVersion();
     $value = array("field_id" => 876, "value" => 3.14);
     $this->assertEqual(3.14, $field->getFieldDataFromRESTValueByField($value));
 }