Merge pull request #6630 from urbit/jb/insane

hoon: fixes (sane %t) for multi-byte glyphs
This commit is contained in:
Josh Lehman 2023-06-09 08:17:16 -07:00 committed by GitHub
commit 82aae2f9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -4239,12 +4239,11 @@
?& ?| =(1 tef)
=+ i=1
|- ^- ?
?|
=(i tef)
?| =(i tef)
?& (gte (cut 3 [(add i inx) 1] b) 128)
$(i +(i))
== == ==
$(inx +(inx))
$(inx (add inx tef))
==
::
++ ruth :: biblical sanity

View File

@ -143,4 +143,8 @@
!> (scot %q 0x101.0101.0101.0101.0102)
::
==
::
++ test-sane
%- expect
!>(((sane %t) '🤔'))
--