Commit Graph

3 Commits

Author SHA1 Message Date
Raymond Pasco
4389263922 Fix ++lune corner cases for real
without breaking others this time. Cases tested:

(lune '')                  -> ~
(lune '\0a')               -> ~['']
(lune 'a')                 -> noeol
(lune '\0aabcd')           -> noeol
(lune '\0aabcd\0a')        -> ~['' 'abcd']
(lune '\0aabcd\0aefgh')    -> noeol
(lune '\0aabcd\0aefgh\0a') -> ~['' 'abcd' 'efgh']
(lune '\0aabcd\0a\0a')     -> ~['' 'abcd' '']
(lune 'abcd')              -> noeol
(lune 'abcd\0a')           -> ~['abcd']
(lune 'abcd\0aefgh')       -> noeol
(lune 'abcd\0aefgh\0a')    -> ~['abcd' 'efgh']
(lune 'abcd\0a\0a')        -> ~['abcd' '']
2016-03-03 17:34:37 -05:00
Raymond Pasco
db30dbfb00 Fix broken first-byte cases in ++lune
Was broken when first byte was a newline, and when first byte was the
only byte.
2016-03-03 17:11:19 -05:00
Raymond Pasco
66b99d0a6e Add ++lune jet 2016-03-03 00:05:21 -05:00