store(&NAME) '042 - long context and split deadkeys'
c Description: Tests that we don't split a dk in context. Note that we start with a context with length MAXCONTEXT.
c keys: [K_Z][K_SPACE][K_1][K_2]
c context:
c expected: PASS

store(&version) '6.0'

begin Unicode > use(Main)

group(Main) using keys

c Setup
+ [K_Z] > dk(1) 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk'

c Test 1: Test that we haven't split a deadkey code: UC_SENTINEL CODE_DEADKEY <deadkey_number>
c         Here, looking at last char only: deadkey_number = U+0001
U+0001 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk' + ' ' > 'FAIL'
dk(1) 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk' + ' ' > 'UNEXPECTED'

c Convert to a visible result:
'defghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk ' + '1' > 'def'
dk(1) 'abcdef' + '2' > 'PASS'
