Skip to content

Commit

Permalink
renaming format delimited number.
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultz committed Mar 9, 2011
1 parent aada159 commit a66e917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -18,7 +18,7 @@ package mesh.view.helpers.number
* @param options The options to use.
* @return A delimited number as a string.
*/
public function numberWithDelimiter(number:Number, options:Object = null):String
public function withDelimiter(number:Number, options:Object = null):String
{
options = merge({delimiter:",", separator:"."}, options);

Expand Down
Expand Up @@ -5,7 +5,7 @@ package mesh.view.helpers.number
import org.flexunit.assertThat;
import org.hamcrest.object.equalTo;

public class NumberWithDelimiterTests
public class WithDelimiterTests
{
private var _tests:Array;

Expand All @@ -25,7 +25,7 @@ package mesh.view.helpers.number
public function testNumberWithDelimiter():void
{
for each (var test:Object in _tests) {
assertThat("test failed for number," + test.number + ", with options: " + inspect(test.options), numberWithDelimiter(test.number, test.options), equalTo(test.expected));
assertThat("test failed for number," + test.number + ", with options: " + inspect(test.options), withDelimiter(test.number, test.options), equalTo(test.expected));
}
}
}
Expand Down

0 comments on commit a66e917

Please sign in to comment.