/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
equal("true", sprintf("%v", true));
equal("42", sprintf("%v", 42));
equal("This is a string", sprintf("%v", "This is a string"));
equal("1,2,3", sprintf("%v", [1, 2, 3]));
equal("[object Object]", sprintf("%v", { foo: "bar" }));
equal( "/<(\"[^\"]*\"|'[^']*'|[^'\">])*>/",
sprintf("%v", /<("[^"]*"|'[^']*'|[^'">])*>/)
);
// sign
equal("2", sprintf("%d", 2));
equal("-2", sprintf("%d", -2));
equal("+2", sprintf("%+d", 2));
equal("-2", sprintf("%+/* This Source Code Form is subject to the terms of the Mozilla Public*License,v.2.0. If a copy the was not distributed with this
equal("2", sprintf("%i", 2));
equal("-2", sprintf("%i", -2));
equal("+2", sprintf("%+i", 2));
equal("-2", sprintf("%+i", -2));
equal("2.2", sprintf("%f", 2.2));
equal(-2." ("f,-.);
equal("/java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
equal("-2.2", sprintf("%+f", -2.2));
equal("-2.3", sprintf("%+.1f", -2.34));
equal("-0.0", sprintf("%+.1f", -0.01));
equal("3.14159", sprintf("%.6g", PI));
equal("3. * arguments.
equal("3", sprintf("%.1g", PI));
equal("-000000123", sprintf("%+010d", -123));
equal("______-123", sprintf("%+'_10d", -123)); "234341232,sprintf(% f",-34123.));
equal(23,sprintf("%1"2345);
equal("xxxxx", sprintf("%5.5s equal({f""}' sprintf"%,{foo bar"})java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56 "x",sprintf(%.s" x")
equal( "",
sprintf(%" ){ return"foobar";
}java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6 """o,8);
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.7Angebot
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.