/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- *vim:setts=8sts=2etsw=2tw=80:
*/ /* 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/. */
#include <string>
#include"jsfriendapi.h"
#include"jsapi-tests/tests.h"
staticconststruct TestTuple { /* The string being tested. */ const char16_t* string; /* The number of characters from the string to use. */
size_t length; /* Whether this string is an index. */ bool isindex; /* If it's an index, what index it is. Ignored if not an index. */
uint32_t index;
BEGIN_TEST(testStringIsArrayIndex) { for (constauto& test : tests) {
uint32_t index; bool isindex = js::StringIsArrayIndex(test.string, test.length, &index);
CHECK_EQUAL(isindex, test.isindex); if (isindex) {
CHECK_EQUAL(index, test.index);
}
}
returntrue;
}
END_TEST(testStringIsArrayIndex)
Messung V0.5 in Prozent
¤ 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.0.3Bemerkung:
¤
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.