TestCRT.cpp revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
5090N/A/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 5090N/A/* ***** BEGIN LICENSE BLOCK ***** 5090N/A * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5090N/A * The contents of this file are subject to the Mozilla Public License Version 5090N/A * 1.1 (the "License"); you may not use this file except in compliance with 5090N/A * the License. You may obtain a copy of the License at 5090N/A * Software distributed under the License is distributed on an "AS IS" basis, 5090N/A * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 5090N/A * for the specific language governing rights and limitations under the 5090N/A * The Original Code is mozilla.org code. 5090N/A * The Initial Developer of the Original Code is 5090N/A * Netscape Communications Corporation. 5090N/A * Portions created by the Initial Developer are Copyright (C) 1998 5090N/A * the Initial Developer. All Rights Reserved. 5090N/A * Alternatively, the contents of this file may be used under the terms of 5090N/A * either of the GNU General Public License Version 2 or later (the "GPL"), 5090N/A * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 5090N/A * in which case the provisions of the GPL or the LGPL are applicable instead 5090N/A * of those above. If you wish to allow use of your version of this file only 5090N/A * under the terms of either the GPL or the LGPL, and not to allow others to 5090N/A * use your version of this file under the terms of the MPL, indicate your 5090N/A * decision by deleting the provisions above and replace them with the notice 5090N/A * and other provisions required by the GPL or the LGPL. If you do not delete 5090N/A * the provisions above, a recipient may use your version of this file under 5090N/A * the terms of any one of the MPL, the GPL or the LGPL. 5090N/A * ***** END LICENSE BLOCK ***** */ 5090N/A// The return from strcmp etc is only defined to be postive, zero or 5090N/A// negative. The magnitude of a non-zero return is irrelevant. 5090N/A// Verify that nsCRT versions of string comparison routines get the 5090N/A// same answers as the native non-unicode versions. We only pass in 5090N/A// iso-latin-1 strings, so the comparison must be valid.