Skip to content

test_unicode_database_to_c

Vaughan Kitchen edited this page Dec 13, 2016 · 1 revision

About

This is a Mac OS X shell script that when in the build directory will perform the test of the JASS Unicode methods against the D language Phobos std.uni methods. See cmp_d_to_utype for details.

Usage

First build JASS, then

test_unicode_database_to_c.sh

This will create the file test_unicode_database_to_c_with_d.txt in the current directory (the build directory) whose contests should be (unless Phobos has changed):

GRAPH:Codepoint:0x180E D says 0
SPACE:Codepoint:0x180E D says 0
WHITESPACE:Codepoint:0x180E D says 0
PUNCT:Codepoint:0x207B D says 0
PUNCT:Codepoint:0x208B D says 0
PUNCT:Codepoint:0x2212 D says 0
PUNCT:Codepoint:0x2308 D says 1
SYMBOL:Codepoint:0x2308 D says 0
PUNCT:Codepoint:0x2309 D says 1
SYMBOL:Codepoint:0x2309 D says 0
PUNCT:Codepoint:0x230A D says 1
SYMBOL:Codepoint:0x230A D says 0
PUNCT:Codepoint:0x230B D says 1
SYMBOL:Codepoint:0x230B D says 0
Clone this wiki locally