Preparation, Enforcement, and Comparison of Internationalized Strings (PRECIS) Test Vectors
draft-whited-precis-test-vectors-02

Document Type Active Internet-Draft (individual)
Last updated 2018-09-18
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
PRECIS                                                         S. Whited
Internet-Draft                                                Individual
Intended status: Standards Track                      September 18, 2018
Expires: March 22, 2019

 Preparation, Enforcement, and Comparison of Internationalized Strings
                         (PRECIS) Test Vectors
                  draft-whited-precis-test-vectors-02

Abstract

   This document contains machine readable test vectors for several
   Preparation, Enforcement, and Comparison of Internationalized Strings
   (PRECIS) profiles.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on March 22, 2019.

Copyright Notice

   Copyright (c) 2018 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Whited                   Expires March 22, 2019                 [Page 1]
Internet-Draft                PRECIS: Tests               September 2018

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Overview  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Test Vectors  . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Methodology . . . . . . . . . . . . . . . . . . . . . . .   3
     2.2.  Enforcement Tests . . . . . . . . . . . . . . . . . . . .   3
       2.2.1.  Basic . . . . . . . . . . . . . . . . . . . . . . . .   3
       2.2.2.  Context Rule 1  . . . . . . . . . . . . . . . . . . .   3
       2.2.3.  Context Rule 2  . . . . . . . . . . . . . . . . . . .   4
       2.2.4.  Context Rule 3  . . . . . . . . . . . . . . . . . . .   5
       2.2.5.  Context Rule 4  . . . . . . . . . . . . . . . . . . .   5
       2.2.6.  Context Rule 5+6  . . . . . . . . . . . . . . . . . .   5
       2.2.7.  Context Rule 7  . . . . . . . . . . . . . . . . . . .   6
       2.2.8.  Context Rule 8+9  . . . . . . . . . . . . . . . . . .   6
       2.2.9.  Nickname  . . . . . . . . . . . . . . . . . . . . . .   6
       2.2.10. OpaqueString  . . . . . . . . . . . . . . . . . . . .   7
       2.2.11. UsernameCaseMapped  . . . . . . . . . . . . . . . . .   8
       2.2.12. UsernameCasePreserved . . . . . . . . . . . . . . . .  10
       2.2.13. UsernameCaseMappedRestricted  . . . . . . . . . . . .  10
     2.3.  Comparison Tests  . . . . . . . . . . . . . . . . . . . .  10
       2.3.1.  Nickname  . . . . . . . . . . . . . . . . . . . . . .  10
   3.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  11
   4.  Security Considerations . . . . . . . . . . . . . . . . . . .  11
   5.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  11
   Appendix A.  Acknowledgements . . . . . . . . . . . . . . . . . .  11
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  11

1.  Introduction

1.1.  Overview

   This document contains machine readable test vectors for several
   Preparation, Enforcement, and Comparison of Internationalized Strings
   (PRECIS) [RFC8264] profiles.

   Two sets of vectors exist for profiles of the base classes.  The
   first set tests the enforcement step.  It takes the form of a table
   that contains an input string, an output string and an optional
   error.  If the error column has a value of "ctx" it indicates that
   the context rule was violated, "empty" means that an empty string was
   disallowed, "rune" means that a disallowed code point (rune) was
   encountered, and "bidi" indicates that the BIDI Rule was violated.
   The second set tests the PRECIS comparison step.  It takes the form
   of a table that contains two strings, a boolean that is TRUE if the
   two strings should be considered equal and FALSE otherwise, and an
   optional comment.
Show full document text