Skip to content

Commit

Permalink
Update Emoji Tests to version Unicode version 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Jul 11, 2018
1 parent e3ba673 commit de629d0
Show file tree
Hide file tree
Showing 3 changed files with 2,495 additions and 2,251 deletions.
2 changes: 2 additions & 0 deletions S15-nfg/emoji-test-gen.p6
@@ -1,11 +1,13 @@
#!/usr/bin/env perl6
## WHEN UPDATING UNICODE VERSION ALSO UPDATE docs/unicode-generated-tests.asciidoc
# Generates tests from GraphemeBreakPropertyTest.txt from UNIDATA
# At the moment this test only checks how many graphemes we think exist
# in the string. The test itself defines points where we should break or
# not break. For now we just test if the number of graphemes is correct.
# This is mostly good enough.
use v6;
sub MAIN ( Str $EmojiTest-file ) {
note "WHEN UPDATING UNICODE VERSION ALSO UPDATE docs/unicode-generated-tests.asciidoc";
my @text = $EmojiTest-file.IO.slurp.lines;
my $line-no = 0;
my $emoji-version;
Expand Down

0 comments on commit de629d0

Please sign in to comment.