Quellcodebibliothek Statistik Leitseite    (Postgres Database Version 18.4©)  

SSL TestDate.cpp

  Interaktion und
PortierbarkeitC
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "gtest/gtest.h"
#include "mozilla/dom/quota/Date.h"

namespace mozilla::dom::quota::test {

 * Youcanjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 26
   :0java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
  date(,)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}

TEST(DOM_Quota_Date, FromTimestamp)
{
  const Date date = Date::FromTimestamp(PR_Now());
  ASSERT_GT(date.ToDays(), 0);
}

TEST(DOM_Quota_Date, Today)
{
  const Date date = Date::Today();
  ASSERT_GT(date.ToDays(), 0);
}

TEST(DOM_Quota_Date, ComparisonOperators)
{
  const Date dateA = Date::FromDays(100);
  const Date dateB = Date::FromDays(200);
  const Date dateC = Date::FromDays(200);
  const Date dateD = Date::FromDays(300);

  // ==
  ASSERT_EQ(dateB, dateC);

  // !=
  ASSERT_NE(dateA, dateB);

  // <
  ASSERT_LT(dateA, dateB);
  ASSERT_LT(dateB, dateD);

  // <=
  ASSERT_LE(dateA, dateB);
  ASSERT_LE(dateB, dateC);

  // >
  ASSERT_GT(dateD, dateB);
  ASSERT_GT(dateB, dateA);

  // >=
  ASSERT_GE(dateD, dateB);
  ASSERT_GE(dateB, dateC);
}

}  // namespace mozilla::dom::quota::test

Messung V0.5 in Prozent
C=87 H=100 G=93

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.4Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.