Skip to content

Commit 6e9499c

Browse files
committed
libjob/test: test the emoji flux_jobid_t encoding
Problem: No tests in the libjob unit testsuite ensure the "emoji" jobid encoding works as intended. Add some expected emoji output to the libjob unit tests.
1 parent 3c28891 commit 6e9499c

File tree

1 file changed

+4
-0
lines changed
  • src/common/libjob/test

1 file changed

+4
-0
lines changed

src/common/libjob/test/job.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ struct jobid_parse_test jobid_parse_tests[] = {
369369
{ "dothex", 0, "0000.0000.0000.0000" },
370370
{ "kvs", 0, "job.0000.0000.0000.0000" },
371371
{ "words", 0, "academy-academy-academy--academy-academy-academy" },
372+
{ "emoji", 0, "😃" },
372373
#if ASSUME_BROKEN_LOCALE
373374
{ "f58", 0, "f1" },
374375
#else
@@ -380,6 +381,7 @@ struct jobid_parse_test jobid_parse_tests[] = {
380381
{ "dothex", 1, "0000.0000.0000.0001" },
381382
{ "kvs", 1, "job.0000.0000.0000.0001" },
382383
{ "words", 1, "acrobat-academy-academy--academy-academy-academy" },
384+
{ "emoji", 1, "😄" },
383385
#if ASSUME_BROKEN_LOCALE
384386
{ "f58", 1, "f2" },
385387
#else
@@ -391,6 +393,7 @@ struct jobid_parse_test jobid_parse_tests[] = {
391393
{ "dothex", 65535, "0000.0000.0000.ffff" },
392394
{ "kvs", 65535, "job.0000.0000.0000.ffff" },
393395
{ "words", 65535, "nevada-archive-academy--academy-academy-academy" },
396+
{ "emoji", 65535, "💁📚" },
394397
#if ASSUME_BROKEN_LOCALE
395398
{ "f58", 65535, "fLUv" },
396399
#else
@@ -402,6 +405,7 @@ struct jobid_parse_test jobid_parse_tests[] = {
402405
{ "dothex", 6787342413402046, "0018.1d0d.4d85.0fbe" },
403406
{ "kvs", 6787342413402046, "job.0018.1d0d.4d85.0fbe" },
404407
{ "words", 6787342413402046, "cake-plume-nepal--neuron-pencil-academy" },
408+
{ "emoji", 6787342413402046, "👴😱🔚🎮🕙🚩" },
405409
#if ASSUME_BROKEN_LOCALE
406410
{ "f58", 6787342413402046, "fuzzybunny" },
407411
#else

0 commit comments

Comments
 (0)