fix(benchpress): benchpress fixes and a smoke test for Dart

This commit is contained in:
Yegor Jbanov
2015-02-20 17:44:23 -08:00
parent 0a0c0d8302
commit d1f03e509b
18 changed files with 263 additions and 61 deletions

View File

@ -95,6 +95,14 @@ class StringJoiner {
}
class NumberWrapper {
static String toFixed(num n, int fractionDigits) {
return n.toStringAsFixed(fractionDigits);
}
static bool equal(num a, num b) {
return a == b;
}
static int parseIntAutoRadix(String text) {
return int.parse(text);
}

View File

@ -138,6 +138,14 @@ export class NumberParseError extends Error {
export class NumberWrapper {
static toFixed(n:number, fractionDigits:int):string {
return n.toFixed(fractionDigits);
}
static equal(a, b):boolean {
return a === b;
}
static parseIntAutoRadix(text:string):int {
var result:int = parseInt(text);
if (isNaN(result)) {