Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  TestAppCollator.cpp  Sprache: C


/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


#include "gtest/gtest.h"

#include "mozilla/intl/AppCollator.h"
#include "nsString.h"

#define APP_COLLATOR_TEST(name) TEST(AppCollatorTest, name)

using namespace mozilla::intl;

APP_COLLATOR_TEST(Numeric) {
  nsAutoCString ten("foo10");
  nsAutoCString two("foo2");
  nsAutoString ten16(u"foo10");
  nsAutoString two16(u"foo2");

  ASSERT_EQ(AppCollator::Compare(ten, two), 1);
  ASSERT_EQ(AppCollator::CompareBase(ten, two), 1);
  ASSERT_EQ(AppCollator::Compare(ten16, two16), 1);
  ASSERT_EQ(AppCollator::CompareBase(ten16, two16), 1);
}

Messung
CHZG
8610010095

¤ Dauer der Verarbeitung: 0.6 Sekunden  (vorverarbeitet am  2026-11-25) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,189,179
#Domains=946,201